Desktop: File exclusion per directory

Created on 24 Oct 2017  路  3Comments  路  Source: nextcloud/desktop

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.

feature-request

Most helpful comment

I would really like this, mostly because I wouldn't have to manage separate exlusion lists on every client I use

All 3 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TP75 picture TP75  路  3Comments

rguenther-dz picture rguenther-dz  路  3Comments

MichaIng picture MichaIng  路  3Comments

putt1ck picture putt1ck  路  4Comments

kaysond picture kaysond  路  3Comments