mirror of
https://github.com/prasathmani/tinyfilemanager.git
synced 2026-04-26 19:05:54 +03:00
[GH-ISSUE #528] Filter certain folder names #389
Labels
No labels
Feature
Feature
Is It Really an Issue?
Need More Info
Request
Security
bug
duplicate
enhancement
enhancement
help wanted
invalid
pull-request
question
suggestion
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tinyfilemanager#389
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @huntson on GitHub (Apr 16, 2021).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/528
Is there a way to hide folders matching certain strings? For example, I am trying to run this on a Synology unit and they are littered with the '@eaDir' folders. It would be nice to be able to prevent the users from seeing those.
@prasathmani commented on GitHub (Apr 16, 2021):
check this out https://github.com/prasathmani/tinyfilemanager/wiki/Exclude-Files-&-Folders
@huntson commented on GitHub (Apr 17, 2021):
Not working.
@prasathmani commented on GitHub (Apr 17, 2021):
make your your setting configuration in
config.phpThe default configuration will be loaded from config.php, it is an additional configuration file, Feel free to remove completely this file and configure "tinyfilemanager.php" as a single file application.
@huntson commented on GitHub (Apr 17, 2021):
I'm not sure how what you wrote helps me. I showed you a screenshot of my config file which is set to, according to my understanding, filter out '@eaDir' yet when I load your application up in a web browser, as per the other screenshot, it shows the '@eaDir' folder.
@prasathmani commented on GitHub (Apr 18, 2021):
in which file your setting
$exclude_items?basically the tinyfilemanager load configuration form
config.phpifconfig.phpfile not available, then it usetinyfilemanager.php, so if you haveconfig.php, make sure your setting all configurations inconfig.phpfile.I tried in my local environment with same folder name it is working fine
@huntson commented on GitHub (Apr 18, 2021):
I am setting
$exclude_itemsinconfig.php.In the same file I was able to set$use_auth = falseand tinyfilemanager.php is behaving properly and honoring that argument. Is it possible that my syntax for$exclude_itemsis wrong?@prasathmani commented on GitHub (Apr 20, 2021):
No syntax error
@prasathmani commented on GitHub (Apr 28, 2021):
replace following code in
fm_is_exclude_itemsfunction@prasathmani commented on GitHub (May 17, 2021):
fix is available in latest code