You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Google drive folder named single quote can't be listed #3262
This works in current rclone and there is now an integration test for folder names containing single quotes. Closing, but please reopen if you can still reproduce it with the latest beta.
Activity
ncw commentedon Jun 14, 2019
This is probably to do with this code if you fancy investigating.
https://github.com/ncw/rclone/blob/22368b997c093bc51c6305fab120f07b7dea7daf/backend/drive/drive.go#L602
The escaping for search terms isn't documented (or wasn't when we wrote the code)
https://developers.google.com/drive/api/v3/search-files
I think rclone is doing the right thing
The first query is this when looking for a file
And the second query is this when looking for a directory
Which look correct for looking for a directory called
'in the root.So this could well be a bug in google drive rather than rclone.
@B4dM4n any ideas?
animosity022 commentedon May 20, 2020
Is this still an issue?
Or am I misunderstanding what the problem was?
calisro commentedon May 20, 2020
Still an issue
animosity022 commentedon May 20, 2020
Ah, I see what I misread now. Thanks.
ncw commentedon May 25, 2020
I'm pretty sure this is a bug in google drive and its handling of the
nameparameter. Rclone is doing the escaping the same for all of these:''''a''aa'We maybe should stop searching for specific names and list the entire directory. This would be less efficient though.
An alternative would be to not search for specific names if they had
'or\in - that would be a pretty easy work-around.Cprakhar commentedon Feb 15, 2026
I guess it is fixed.
bisync: add to integration tests - fixes rclone#7665
ncw commentedon Oct 15, 2026
This works in current rclone and there is now an integration test for folder names containing single quotes. Closing, but please reopen if you can still reproduce it with the latest beta.