Mistake using moveto


#1

Hi guys,

I’ve made a mistake using the moveto command. I typed something like

rclone moveto gdrive:directory/filename gdrive:directory/subdir

And now, in my directory, I have a subdirectory called “subdir” and a file called “subdir”.

If I do a rclone lsl --max-depth=1 gdrive:directory

I can see the file. But it is not listed in the Gdrive app.

Do you have any idea of how I could get rid of this file without ripping the subdir ?

Thanks a lot for your help


#2

Ah I see - you have a file and a directory both called “subdir”.

I’d probably try fixing this using the web interface. Does that work?


#3

I thought about that too, but the file doesn’t appear on Google Drive web interface. I don’t see in recents update.


#4

Hmm, here is an idea - if you do

rclone moveto gdrive:directory/subdir gdrive:directory/subdir.renamed

This will rename either the file or the directory. You should be able to sort it out from there!


#5

That was the good trick, thanks ! It renamed the subdir, and then I was able to delete the file, and then rename the subdir.

Thanks a lot.