[VD:LocalFileSystem] fix file.perm stat on chmod

This commit is contained in:
nao-pon
2015-06-21 13:37:51 +09:00
parent 4522918fec
commit 4cc7b94195
+3 -1
View File
@@ -670,7 +670,9 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
**/
protected function _chmod($path, $mode) {
$modeOct = is_string($mode) ? octdec($mode) : octdec(sprintf("%04o",$mode));
return @chmod($path, $modeOct);
$ret = @chmod($path, $modeOct);
$ret && clearstatcache($path);
return $ret;
}
/**