45Drives / cockpit-navigator

A Featureful File Browser for Cockpit
GNU General Public License v3.0
542 stars 41 forks source link

[feature request] MV instead of RSYNC #33

Open jyxjjj opened 3 years ago

jyxjjj commented 3 years ago

when i just want to move with cut/paste, it takes too long. i checked top, it used rsync. why dont use mv?

jyxjjj commented 3 years ago

btw, Fedora 34, v0.5.4-1.fc34.noarch

joshuaboud commented 3 years ago

rsync is needed while moving or copying directories to allow merging of directories with the same name. To accomplish this with mv, it would need to execute mv once for every file to preserve directory hierarchy, compared to a single execution of rsync with the entire list of files. It is true that rsync is slower than mv while moving within the same file system though, as mv just renames files and rsync fully copies them and deletes the originals. I may try to implement having it default to renaming files and only falling back to rsync if the move is determined to be across filesystems at some point, so I'll keep this open until then.

xfisbest commented 1 year ago

Still waiting for this to be implemented :)

jyxjjj commented 1 year ago

@joshuaboud What will go on?