What is your rclone version (output from rclone version
)
rclone v1.52.2-192-g8d5bc7f2-beta
Which OS you are using and how many bits (eg Windows 7, 64 bit)
- os/arch: linux/amd64
- go version: go1.14.4
Which cloud storage system are you using? (eg Google Drive)
Crypt remove over a shared google drive remote
What is the problem you are having with rclone?
I started experimenting with the google shortcut feature yesterday and took some inspiration from this post https://github.com/rclone/rclone/issues/4098#issuecomment-626183021 on how to add them to a crypt remote.
Then I ran some other commands that deleted the source files, but the shortcuts are still there.
If I try access these files from a mount or perform a ls on the folder with shortcut
The logs are showing these messages
ERROR : <redacted>/: Dir.Stat error: list: failed to resolve shortcut: googleapi: Error 404: File not found: 1SqtqIm1O3zm2o79UE3p2lrdXdEkXFewN., notFound
This makes perfect sense as the files are no longer there.
In the browser interface the invalid shortcuts are greyed out and have a remove shortcut button. So they can easily be removed there.
I guess I could parse the log and have a script remove the invalid shortcuts.
Do any better way exist to have rclone remove invalid shortcuts?
Would it be possible to either integrate this logic in some command or add a new command to have rclone auto remove invalid shortcuts from a specified remote and path?