mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
[VD:FTP] fix #1571 cause infinite loop during auto-sync of the volume root
This commit is contained in:
@@ -688,20 +688,20 @@ class elFinderVolumeFTP extends elFinderVolumeDriver {
|
||||
} else {
|
||||
$this->convEncIn();
|
||||
}
|
||||
if (!$this->MLSTsupprt) {
|
||||
if ($path == $this->root && ($path === $this->systemRoot || ! $this->isMyReload())) {
|
||||
if (! $this->MLSTsupprt) {
|
||||
if ($path === $this->root) {
|
||||
$res = array(
|
||||
'name' => $this->root,
|
||||
'mime' => 'directory',
|
||||
'dirs' => $this->_subdirs($path)
|
||||
);
|
||||
if ($this->isMyReload()) {
|
||||
$ts = 0;
|
||||
$ts = 0;
|
||||
foreach (ftp_rawlist($this->connect, $path) as $str) {
|
||||
if (($stat = $this->parseRaw($str, $path))) {
|
||||
$ts = max($ts, $stat['ts']);
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($ts) {
|
||||
$res['ts'] = $ts;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user