Files.mv works different according to target parent directory #7646
Labels
kind/bug
A bug in existing code (including security flaws)
need/author-input
Needs input from the original author
Version information:
go-ipfs version: 0.5.1-8431e2e
Repo version: 9
System version: amd64/darwin
Golang version: go1.14.2
Description:
Using
ipfs.files.mv
in a file to 2+ top-level directory copies the file instead of moving it. When moving files from a path to a direct parent path, themv
command works fine.Considering we have the following file:
/animals/pets/dogs/doge.png
If I do
ipfs files mv /animals/pets/dogs/doge.png /animals/pets/dogs
, it works as intended (file gets moved and original removed)if I do
ipfs files mv /animals/pets/dogs/doge.png /animals/pets/
oripfs files mv /animals/pets/dogs/doge.png /animals/
the file gets copied instead.The text was updated successfully, but these errors were encountered: