MStadlmeier / drivesync

Google Drive synchronization for Linux
MIT License
197 stars 26 forks source link

Regexes in ignored_files don't work #4

Closed marcoscarpetta closed 6 years ago

marcoscarpetta commented 6 years ago

Hi, First of all, thank you for this software! Regexes in ignored_files list in config.yml didn't work, so I tried to fix the issue. They seem to work now. Anyway I'm not a ruby programmer, so please check this commit.

MStadlmeier commented 6 years ago

Hi Marco, thanks a lot for your contribution. You are correct, regexes do in fact not work correctly currently. The ignored_files system changed during development and wasn't tested properly, sorry for the inconvenience. However, in the next patch which will come out in just a few days, the system will be changed completely so that instead of having a list of ignored files users can choose between a whitelist or blacklist system. Both of these lists will allow Globs (eg. path/*, not regexes), so your pull fix will not be necessary very soon.