Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignored Files/Dir should allow for matching directory specific files and subdirectories #7370

Open
distinctjuggle opened this issue Oct 19, 2024 · 0 comments
Labels
0. Needs triage enhancement enhancement of a already implemented feature/code

Comments

@distinctjuggle
Copy link

How to use GitHub

  • Please use the 👍 reaction to show that you are interested into the same feature.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Feature request

Which Nextcloud Version are you currently using: Latest / Irrelevant / 3.14.x

Describe the solution you'd like
It'd be nice if you could specify a particular parent directory name for ignoring files. For example, say I want to ignore the file OR directory named bar, but only when it is inside of foo. I could put either of the following entries for the desired use case:

foo/bar
foo/bar/

If these entries respected the parent directory name, then any other folders not named foo would allow for bar to continue to be synced. This adds a layer of functionality to the pattern matching so that a very particular use case can be accomplished, and prevent the unnecessary ignoring of syncing in other places.

Describe alternatives you've considered
The only alternative which seems to exist is blocking the entire bar/ directory regardless of the parent foo/'s presence or not. This will often be okay, but in particular circumstances it may not be desirable. For example, when building Rust applications there are many files created in target/debug/ and target/release/. Nextcloud struggles with syncing a lot of tiny files, and there's really nothing important in these directories which requires syncing anyways. If many Rust project folders are present within a Nextcloud directory, it can be desirable to specifically block target/debug/ and target/release/ while not impacting other target folders for other build projects. Unfortunately, the only existing solution seems to be to block all target/ directories as of present.

I looked for duplicates, but I didn't see any. Apologies if I missed one.

@distinctjuggle distinctjuggle added 0. Needs triage enhancement enhancement of a already implemented feature/code labels Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage enhancement enhancement of a already implemented feature/code
Projects
None yet
Development

No branches or pull requests

1 participant