Move empty directories

I also want to transfer empty directories

What is the problem you are having with rclone?

  • I would also like to move the empty directories
  • I want to delete the subdirectory after the move, but do not delete the source directory (in the example 0508)

What is your rclone version (output from rclone version)

rclone v1.51.0

  • os/arch: linux/amd64
  • go version: go1.13.7

Which OS you are using and how many bits (eg Windows 7, 64 bit)

debian 10

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

Google drive

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

rclone move /home/0508 gcrypt_upload:/archive/0508 --checkers 3 --log-file /root/upload.log -v --tpslimit 3 --transfers 3 --drive-chunk-size 32M



You can use:

      --create-empty-src-dirs   Create empty source dirs on destination after copy

I'm not 100% what you mean but empty directories are not removed.

      --delete-after                         When synchronizing, delete files on destination after transferring (default)
      --delete-before                        When synchronizing, delete files on destination before transferring
      --delete-during                        When synchronizing, delete files during transfer

You can delete before / after / during.

If you want to delete the source empty dirs, you'd use:

      --delete-empty-src-dirs   Delete empty source dirs after move




my question about deleting, I have this structure, for example


I want to delete dir1, dir2, dir3 after the transfer, but not the directory 0508


It depends on your command, are you copying from /home/0508/? If so, yes. If from /home/, no as it's either all or nothing.

thank you, ch was able to solve my problem

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