Add excluded_directories as config option

(migrated from github issue #26651)

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.

Additional context
If someone has enough time to develop this feature, a bonus would be to accept wildcards in patterns.

Thank you

Well, you could revive that files_excludedirs plugin. There is a PR in there to make it compatible with NC15, which is a start in the right direction.

Or, why don’t you clean out the irrelevant files from the tree? If you need those files to be available for another purpose, you should be able to use unionfs to merge two trees together.

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.