|
@@ 848-850 (lines=3) @@
|
| 845 |
|
} |
| 846 |
|
|
| 847 |
|
// get current working directory files list and add to $files if not exists in it |
| 848 |
|
if (($ls = $volume->scandir($cwd['hash'])) === false) { |
| 849 |
|
return array('error' => $this->error(self::ERROR_OPEN, $cwd['name'], $volume->error())); |
| 850 |
|
} |
| 851 |
|
// long polling mode |
| 852 |
|
if ($args['compare']) { |
| 853 |
|
$sleep = max(1, (int)$volume->getOption('lsPlSleep')); |
|
@@ 875-877 (lines=3) @@
|
| 872 |
|
} |
| 873 |
|
} |
| 874 |
|
} while($limit); |
| 875 |
|
if ($ls === false) { |
| 876 |
|
return array('error' => $this->error(self::ERROR_OPEN, $cwd['name'], $volume->error())); |
| 877 |
|
} |
| 878 |
|
} |
| 879 |
|
|
| 880 |
|
if ($ls) { |