Why does '--delete-empty-src-dirs' only run at end?

What is the problem you are having with rclone?

wondering why "--delete-empty-src-dirs" only cleans up empty directories at end of an rclone move run instead of after it has emptied the directory?

Run the command 'rclone version' and share the full output of the command.

rclone v1.63.1

  • os/version: ubuntu 23.04 (64 bit)
  • os/kernel: 6.2.0-26-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.20.6
  • go/linking: static
  • go/tags: none

Which cloud storage system are you using? (eg Google Drive)

this was google drive, but should be backend non specific.

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone move -P --delete-empty-src-dirs --create-empty-src-dirs gcrypt:/ . --transfers 5

The rclone config contents with secrets removed.

too many to list, should be irrelevant

A log from the command with the -vv flag

command works as expected, just wondering why it works that way.

And the answer is here:):

doesn't seem to explain the why? is there a good reasons to delay it?

It is because rclone doesn't sync directories at the moment so it just does a cleanup at the end.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.