mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
[VD:abstract] fix #1553 root stat not refresh when do chmod of root
This commit is contained in:
@@ -646,6 +646,7 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
|
||||
protected function _scandir($path) {
|
||||
$files = array();
|
||||
$cache = array();
|
||||
$dirWritable = is_writable($path);
|
||||
$statOwner = (!empty($this->options['statOwner']));
|
||||
$dirItr = array();
|
||||
$followSymLinks = $this->options['followSymLinks'];
|
||||
@@ -712,6 +713,7 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
|
||||
//logical rights first
|
||||
$stat['read'] = ($linkreadable || $file->isReadable())? null : false;
|
||||
$stat['write'] = $file->isWritable()? null : false;
|
||||
$stat['locked'] = $dirWritable? null : true;
|
||||
|
||||
if (is_null($stat['read'])) {
|
||||
$stat['size'] = $dir ? 0 : $size;
|
||||
|
||||
Reference in New Issue
Block a user