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

This commit is contained in:
nao-pon
2016-05-29 20:31:33 +09:00
parent 6d1cf0ac77
commit 1b8df316df
+1 -2
View File
@@ -212,9 +212,8 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
return $mtime;
}
$inotifywait = defined('ELFINER_INOTIFYWAIT_PATH')? ELFINER_INOTIFYWAIT_PATH : 'inotifywait';
$path = escapeshellarg($path);
$standby = max(1, intval($standby));
$cmd = $inotifywait.' '.$path.' -t '.$standby.' -e moved_to,moved_from,move,close_write,delete,delete_self';
$cmd = $inotifywait.' '.escapeshellarg($path).' -t '.$standby.' -e moved_to,moved_from,move,close_write,delete,delete_self';
$this->procExec($cmd , $o, $r);
if ($r === 0) {
// changed