You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
copyto fails to copy empty directory. Related to #1837. #2629
A log from the command with the -vv flag (eg output from rclone -vv copy /tmp remote:tmp)
rclone -vv copyto src/a dst/a
2018/10/06 18:24:22 DEBUG : rclone: Version "v1.43.1" starting with parameters ["rclone""-vv""copyto""src/a""dst/a"]
2018/10/06 18:24:22 DEBUG : Using config file from "/home/mingo/.config/rclone/rclone.conf"
2018/10/06 18:24:22 INFO : Local file system at /tmp/dst/a: Waiting for checks to finish
2018/10/06 18:24:22 INFO : Local file system at /tmp/dst/a: Waiting for transfers to finish
2018/10/06 18:24:22 INFO :
Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors: 0
Checks: 0 / 0, -
Transferred: 0 / 0, -
Elapsed time: 200ms
2018/10/06 18:24:22 DEBUG : 3 go routines active
2018/10/06 18:24:22 DEBUG : rclone: Version "v1.43.1" finishing with parameters ["rclone""-vv""copyto""src/a""dst/a"]
Note that it is always the contents of the directory that is synced, not the directory so when source:path is a directory, it's the contents of source:path that are copied, not the directory name and contents
So that's expected.
I admit, this behavior deviates from traditional cp. Unlike cp, rclone grew as a cloud-first tool where directories are frequently are only a part of file name, not a real container.
We will not change that for compatibility with a wealth of rclone wrappers out there. Instead, we will add a new rclone cp command (see #4777) with more traditional semantics.
Activity
14 remaining items
ivandeex commentedon Feb 12, 2021
Sorry, my bad. I should have looked in the docs. Now I can see it explicitly documented in https://rclone.org/commands/rclone_copy/
So that's expected.
I admit, this behavior deviates from traditional
cp. Unlikecp, rclone grew as a cloud-first tool where directories are frequently are only a part of file name, not a real container.We will not change that for compatibility with a wealth of rclone wrappers out there. Instead, we will add a new
rclone cpcommand (see #4777) with more traditional semantics.I think this request too can be merged into #4777
cc @ncw
ncw commentedon Feb 12, 2021
Yes, I'd agree.
ivandeex commentedon Feb 12, 2021
Merged into #4777 (comment)