Rclone google team drives move - leaving behind empty directories

What is the problem you are having with rclone?

When I use the move command it leaves behind empty folders in my source (using google drive)

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

rclone v1.61.1

  • os/version: Microsoft Windows 10 Enterprise 22H2 (64 bit)
  • os/kernel: 10.0.19045.2604 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.19.4
  • go/linking: static
  • go/tags: cmount

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 <source remote>: <Destination remote>: --drive-server-side-across-configs --drive-stop-on-upload-limit=true -vv

The rclone config contents with secrets removed.

[<source remote>]
type = drive
scope = drive
token = {""}
team_drive = <google drive id>
root_folder_id = 

[<destination remote>]
type = drive
scope = drive
token = {""}
team_drive = <google drive id>
root_folder_id = 

[mydrive]
type = drive
scope = drive
token = {""}
team_drive = 

A log from the command with the -vv flag

2023/02/27 16:01:36 DEBUG : rclone: Version "v1.61.1" starting with parameters ["rclone" "move" "<source remote>:" "<destination remote>:/temp" "--drive-server-side-across-configs" "--drive-stop-on-upload-limit=true" "-vv"]
2023/02/27 16:01:36 DEBUG : Creating backend with remote "<destination remote>:"
2023/02/27 16:01:36 DEBUG : Using config file from "C:\\Users\\<username>\\AppData\\Roaming\\rclone\\rclone.conf"
2023/02/27 16:01:36 DEBUG : <destination remote>: detected overridden config - adding "{uwfuV}" suffix to name
2023/02/27 16:01:36 DEBUG : fs cache: renaming cache item "<destination remote>:" to be canonical "<destination remote>{uwfuV}:"
2023/02/27 16:01:36 DEBUG : Creating backend with remote "<source remote>:/temp"
2023/02/27 16:01:36 DEBUG : <source remote>: detected overridden config - adding "{uwfuV}" suffix to name
2023/02/27 16:01:36 DEBUG : fs cache: renaming cache item "<source remote>:/temp" to be canonical "<source remote>{uwfuV}:temp"
2023/02/27 16:01:37 DEBUG : Google drive root 'temp': Waiting for checks to finish
2023/02/27 16:01:37 DEBUG : Google drive root 'temp': Waiting for transfers to finish
2023/02/27 16:01:39 INFO  : kljl;jljlk;jkl;.docx: Moved (server-side)
2023/02/27 16:01:40 INFO  : testme/l;jl;jlkjlj.docx: Moved (server-side)
2023/02/27 16:01:40 INFO  : There was nothing to transfer
2023/02/27 16:01:40 INFO  :
Transferred:              off / off, -, 0 B/s, ETA -
Checks:                 2 / 2, 100%
Renamed:                2
Elapsed time:         4.3s

2023/02/27 16:01:40 DEBUG : 8 go routines active

hello and welcome to the forum,

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

If you want to delete empty source directories after move, use the --delete-empty-src-dirs flag.

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