Google Drive.
When mounted via fuse, the directory exists, and its contents are empty. I want to delete the directory but I get an "in use" error from MacOS.
Also from the command line, I get a different story:
$ rclone rmdir gdrivemount:directory1
2019/11/20 00:49:28 ERROR : Attempt 1/3 failed with 2 errors and: directory not empty
2019/11/20 00:49:28 ERROR : Attempt 2/3 failed with 2 errors and: directory not empty
2019/11/20 00:49:28 ERROR : Attempt 3/3 failed with 2 errors and: directory not empty
2019/11/20 00:49:28 Failed to rmdir with 2 errors: last error was: directory not empty
Turns out it's because of the .DS_Store file that finder drops in every directory. EXCEPT running
ls -a
on your mount won't show the file.
Only:
rclone ls
will show it.
It's possible to invoke fuse with the noappledouble
flag, which will prevent these files from being read/created... is there a way I can pass noappledouble
to fuse with rclone mount
?
Anyway, I removed .DS_Store from about 15 directories and was finally able to delete them... but I'd like to avoid having to go nuke it separately every single time.
Let me know if that is unclear, sorry if so.