[VD:LocalFileSystem] fix warning error in localFileSystemInotify()

This commit is contained in:
nao-pon
2016-07-06 21:05:57 +09:00
parent 1a579a0523
commit 1b4603e621
+7 -2
View File
@@ -218,8 +218,13 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
if ($r === 0) {
// changed
clearstatcache();
$mtime = filemtime($path); // error on busy?
return $mtime? $mtime : time();
if (file_exists($path)) {
$mtime = filemtime($path); // error on busy?
return $mtime? $mtime : time();
} else {
// target was removed
return 0;
}
} else if ($r === 2) {
// not changed (timeout)
return $compare;