I would like to be able to exclude files to be sync by directory. I know it can be done globally but a per directory exclusion list (like a .gitignore) would be great.
The context is that I am using cmake and I would like to exclude build files but keep sources being synced.
I would really like this, mostly because I wouldn't have to manage separate exlusion lists on every client I use
This would be an awesome feature, enabling me to keep programming projects in sync with minimal configuration.
I suggest we read .gitignore and exclude everything in there by default. This should cover most use cases. I don't think anyone would have a problem with ignored files not being synced (correct me if i'm wrong).
I'd be willing to implement this, shouldn't be too hard. Some file searching tools such as https://github.com/BurntSushi/ripgrep and https://github.com/ggreer/the_silver_searcher do this by default.
We could even ask git if some file is ignored, see https://git-scm.com/docs/git-check-ignore. Do you think it's ok to introduce a dependency to git for this?
Try to create .sync-exclude.lst in any directory and then after the sync remove this file.
Client will state "Could not read system exclude file" and will never sync again. Client restart helps.
Most helpful comment
I would really like this, mostly because I wouldn't have to manage separate exlusion lists on every client I use