xybu / onedrive-d-old

Microsoft OneDrive client on Linux.
http://xybu.me/projects/onedrive-d/
GNU Lesser General Public License v3.0
820 stars 143 forks source link

Ignore File ignoring certain things #143

Open cnfw opened 9 years ago

cnfw commented 9 years ago

After trying several things, the ignore file does not seem to process the likes of !/PATH/ to ignore exclusions made elsewhere.

So if I only wanted to sync one directory, this does not work:

*
!ONLY_PATH_I_WANT_TO_SYNC/*

Only workaround I can see, (which does work) is to list every single folder in your OneDrive root directory, which is of course, tedious. Especially if you make a new one that you don't want to sync on your Linux system (Raspberry Pi for me)

cnfw commented 9 years ago

Also cannot get directories with spaces in them to get ignored. Tried:

My\ Folder
'My Folder'
xybu commented 9 years ago

It does not support ! notation. Did you try "My Folder" directly? Python fnmatch doesn't care about escaping spaces.

auxiliary commented 9 years ago

For some reason I wasn't able to ignore a directory with this name: "Photograph series 1". I tried quotes, backslashes, absolute paths, etc. In the end I renamed it and removed the spaces.

KeitelDOG commented 9 years ago

Thank you xybu for onedrive-d. I have to launch a website in a month or 2, but many song files has been already be entered by Data Entry Operators locally. I got everything backed-up to SkyDrive, so when I launch I could get my Ubuntu Server download them faster on SkyDrive rather then re-uploading everything again directly. Onedrive-d was the only obvious solution for me. Except that ! notation is not working. I have no problem doing it the one-way ignoring, but it would be nice to modify the header comments where it says that the ignore list follow gitignore rules. onedrive-d_ignore_rules Thanks again good work