Is your feature request related to a problem? Please describe.
An Owncloud instance I administrate has lots of directories with tons of irrelevant files (eg temporary files or symlinks) on local and external storages. For now, we can use the excluded_directories option to tell OC to completely ignore the directories matching some patterns and to not include them in DB.
We would love to migrate our users to Nextcloud, but we can’t find such option available. Nothing in the doc, and #6888 mention the app files_excludedirs which doesn’t seem to live anymore. I believe there is a few more people hoping for this feature as well.
Describe the solution you’d like
Would be great if this option was also available on NC, either natively or through a custom app.
Describe alternatives you’ve considered
Haven’t found any alternative.
If someone has enough time to develop this feature, a bonus would be to accept wildcards in patterns.
I just tested the version from GitHub - apippin/files_excludedirs: Nextcloud app to exclude directories (which is the PR in the nextcloud-repo), but it does not seem to work, even after “faking” compatibility in the appinfo/info.xml as suggested in issue #5. I can install and activate the plugin, set the filter-values as well, but they just dont seem to get respected in occ files:scan… At least not on locally-mounted external storage.
Please give this unsigned release a spin; should work on 23x.:
As it turns out – as I just answered on How does this work? · Issue #3 · nextcloud/files_excludedirs · GitHub – it only appears to affect new files, but it doesn’t remove matching files from the file cache (it will block access to them, though). If you have existing files that the plugin matches that should not appear in search results, you will need to remove them from the NC database manually.
I’ve provided updated docs in my fork of the Readme (specifically, how it works with existing vs. newly-added files):