Hide File/Folders

Is there a way to hide files and or folders?
We’d ideally do this based on tags such as “internal”.
I have found references to a .hideme.txt file but it only seems to hide itself.

Thank you!

What about the File Access Control?

We’re actually using that to block access, but the files/folders still show up.
The user just gets an error when trying to access them.

We’d like to be able to hide them.

Not directly. You can mount for each user (with individual access code) an external storage and handle all the permissions via the external storage.


Using this as a company (2 user right now) Dropbox with the same files needing different security.

There have been similar feature requests (https://github.com/owncloud/core/issues/7272, https://github.com/owncloud/core/issues/4579), feel free to push them to the nextcloud-repo as well. There needs to be a developer who likes the idea and finally implements it or enough enterprise users who push Nextcloud to do it. For single features, you can support feature requests via bountysource.

It would be nice when the “File Access Control” will actually hide files and folders when tagged in a specific rule and not only make them unreadable or writable.

It’s somewhat of a hack but you can do something along those lines using the Custom CSS app and adding CSS selectors to hide rows (TR) based on partial data-type or filename matches. I use this to hide URL and LNK files on mounted SMB shares:

tr[data-file*=".url"] {
  display: none !important;

tr[data-file*=".lnk"] {
  display: none !important;


name a folder or a file with a dot at the beginning.
(Maybe you have to configure your web server to hide it. Nginx:

 location ~ /\. {
    deny all;
    access_log off;
    log_not_found off;


1 Like

I know this is an old topic, but I think my question is relate.

I have my server set up and in my music folder is the band .38 Special.
Since it starts with the ‘.’ it is taken as a hidden folder. I can’t change the name as it’s owned by www-data. Is there a way to rename the folder or get it ignored by the system as hidden?