kubo mv api act as cp when the path got overlappings. #9185
Labels
kind/bug
A bug in existing code (including security flaws)
need/triage
Needs initial labeling and prioritization
Checklist
Installation method
ipfs-update or dist.ipfs.io
Version
Config
Description
Hi there, I faced this issue in both webui and call the kubo api mv directly. It looks like when the last part of the path matches, the api will act as cp instead of mv.
Case 1:
If I call mv from src
/.../asdf/test.txt
to dst/.../asdf/asdf
, after the mv operation, both path/.../asdf/
and/.../asdf/asdf
will containtest.txt
. It act as cp instead of moving it to the destination directory.Case 2:
If I call mv from src
/.../asdf/test.txt
to dst/.../asdf/test/asdf
, after the mv operation, both path/.../asdf/
and/.../asdf/test/asdf
will containtest.txt
.The text was updated successfully, but these errors were encountered: