mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
[VD:LoacalFileSystem] fix Fatal error: Uncaught exception
Fatal error: Uncaught exception 'UnexpectedValueException' at DirectoryIterator::__construct()
This commit is contained in:
@@ -492,8 +492,12 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
|
||||
$files = array();
|
||||
$cache = array();
|
||||
$statOwner = (!empty($this->options['statOwner']));
|
||||
$dirItr = array();
|
||||
try {
|
||||
$dirItr = new DirectoryIterator($path);
|
||||
} catch (UnexpectedValueException $e) {}
|
||||
|
||||
foreach (new DirectoryIterator($path) as $file) {
|
||||
foreach ($dirItr as $file) {
|
||||
if ($file->isDot()) { continue; }
|
||||
|
||||
$files[] = $fpath = $this->_joinPath($path, $file->getFilename());
|
||||
|
||||
Reference in New Issue
Block a user