optionally hide hidden files if accessed via public share #41947
+50
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
optionally hide hidden files if accessed via public share
config.php setting: hide_hidden_files_via_public_share_access true|false (default = false)
Nextcloud users are able to show/hide hidden files (starting with dot "."). However if a folder containing hidden files is accessed via a public share hidden files are shown. As far as I can see there is currently no option available to hide hidden files for public share access.
I'm not sure if this is a valid or the best way to implement this. It's just a way I figured out to implement it. By default this change should not have any impact. Only if enabled via config.php setting 'hide_hidden_files_via_public_share_access' => true hidden files are excluded from file list if a folder is accessed via a public share link.
Before (example using a nextcloud maps share)
After and enabled via config.php
TODO
Checklist