Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filtering based on permissions #482

Closed
Timtam opened this issue Feb 14, 2024 · 4 comments
Closed

Filtering based on permissions #482

Timtam opened this issue Feb 14, 2024 · 4 comments

Comments

@Timtam
Copy link

Timtam commented Feb 14, 2024

Hello there,

can we already filter files/folders based on permissions? My use-case is a situation where I do have folders which I don't want to be shown or downloaded via zip, namely a .dav folder created by MS Windows WebDAV access. This folder shouldn't be shown in the HFS interface, nor should it be downloadable. I thought having a filter rule on directory level which you can define permissions for would be useful to prevent download/access/whatever for everyone on that .dav folder and its content. What do you think, did I miss something here or does that sound useful?

Thanks!

@rejetto
Copy link
Owner

rejetto commented Feb 14, 2024

so you have folders named ".dav" or ending with ".dav" ?
that's what "masks" are good for, anyway

@Timtam
Copy link
Author

Timtam commented Feb 14, 2024

They're always called .dav, but they can occur in any folder. I tried to look up masks, because they sounded promising, and took the link which can be found within HFS, and then clicked on the Masks link on that wiki page, but that link is dead and leads to a 404. How dcould I use the masks to filter out that folder, and would that include zip downloads too?

@rejetto
Copy link
Owner

rejetto commented Feb 14, 2024

thanks for reporting!
the dead link was caused by a bug in github, actually. I've just found out they have different result for preview and final page, which led me to making it wrong.
Fixed now.

I guess the mask you need is something like "**/.dav": { can_read: false }

This should be enough with default permissions at least.

@Timtam
Copy link
Author

Timtam commented Feb 14, 2024

Thanks, that did it! Its amazing how much is already possible with HFS, really an amazing piece of software. Keep up the great work.

@Timtam Timtam closed this as completed Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants