mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
[VD:LocalFileSystem] fix warning error in localFileSystemInotify()
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user