mirror of
https://github.com/prasathmani/tinyfilemanager.git
synced 2026-04-26 10:55:56 +03:00
[GH-ISSUE #1310] [Improvement] - Improve File and Directory Listing for UNC Paths #837
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#837
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 @kaizenjinco on GitHub (Apr 10, 2025).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/1310
Description:
I encountered an issue with listing files and directories when using a UNC path in the
tinyfilemanager.phpfile of the Tiny File Manager. The current implementation at line 1326, which usesscandir, does not support UNC paths effectively. This results in the inability to list files and directories located on network shares.$objects = is_readable($path) ? scandir($path) : array();Proposed Improvement:
To address this issue, I suggest modifying the code from lines 1328 to 1340 to use a combination of
opendirandreaddir, which are more compatible with UNC paths. This approach has been tested and successfully lists files and directories from a UNC path.Steps to Reproduce:
$root_pathto a UNC path, e.g.,\\\\10.0.10.10\\Data.Proposed Code Change:
Benefits:
I hope this suggestion helps improve the functionality of the Tiny File Manager. Please let me know if further details or testing are needed.