grive2 icon indicating copy to clipboard operation
grive2 copied to clipboard

.griveignore does not ignore folders with spaces

Open roundoutandabout opened this issue 5 years ago • 4 comments

I noticed that when I add to .griveignore folder with spaces, it still syncs it. For example if I have folder a 1 in grive root. And such line in .griveignore file a\ 1, it still syncs this folder. Ignoring of folders without spaces works well. It seems like the same situation with files that contain spaces in the name.

roundoutandabout avatar Oct 19 '19 12:10 roundoutandabout

Same:

-> cat .griveignore 
Google\ Photos
-> grive --id blabla.apps.googleusercontent.com --secret blablu
Reading local directories
Reading remote server file list
Synchronizing files
sync "./.griveignore" changed in remote. downloading
sync "./Google Photos/2016/01/IMG_1580.MOV" changed in remote. downloading

davama avatar Nov 18 '19 14:11 davama

Not able to check it myself right now, but does it work if you have something like: "Google Photos" instead of Google\ Photos?

nodatahere avatar Nov 18 '19 14:11 nodatahere

@nodatahere thanks for the suggestion. Tried with double and single quotes " ' and no change :disappointed: But I did get something interesting...

-> cat .griveignore 
"Google Photos"
-> grive
Reading local directories
Reading remote server file list
Synchronizing files
sync "./.griveignore" changed in remote. downloading
sync "./Google Photos/2016/01/IMG_1580.MOV" changed in remote. downloading
-> cat .griveignore 
Google\ Photos

So grive changed my .griveignore to Google\ Photos ...weird...

davama avatar Nov 18 '19 15:11 davama

I'm having the same issue. Placing ? or * instead of a space doesn't help

kj4tmp avatar Mar 19 '20 23:03 kj4tmp