Hide File/Folders


#1

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!


#2

What about the File Access Control?


#3

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.


#4

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


#5

Bummer.

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


#6

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.


#7

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.


#8

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;
}

Mark


#9

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;
 }

)