Exclude/Blacklist/Hide Folders (eg from occ files:scan)

Hi all,

I got some folders mounted via Local External Store and would like to exclude some folders from ever showing up anywhere ("@eaDir" and “#recycle” Folders, created by Synology NAS).

Current Solution: Prevent Access to those folders on filesystem level (acl deny for everything), so users cannot enter those folders. But they still show up in the files-app and occ files:scan breaks with an Exception during scan: [...] Permission denied.

I tried: Adding the folder-names to blacklisted_files in config.php as described here:
https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/config_sample_php_parameters.html?highlight=blacklisted

files_escludedirs-app is not available anymore:



Same issue:

OwnCloud has an excluded_directories-Parameter for config.php to solve this:
https://doc.owncloud.com/server/admin_manual/configuration/server/excluded_blacklisted_files.html#excluded-directories

Would be nice if anyone has any suggestions :slightly_smiling_face:

2 Likes

I am in the same boat, although I had been using this user’s branch

Which worked up until version 19. I have not troubleshooted as to why it stopped working. I suspect it is due to dependency changes

1 Like

Any working solution with NextCloud 20 to exclude these @eaDir directories?

This would be a neat feature to have!