mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
[VD:LocalFileSystem] fix #1882 option copyJoin does not work on extract
This commit is contained in:
@@ -1102,14 +1102,10 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
|
||||
}
|
||||
} else {
|
||||
$dstDir = dirname($path);
|
||||
$res = false;
|
||||
$result = array();
|
||||
foreach($ls as $name) {
|
||||
$target = $dstDir.DIRECTORY_SEPARATOR.$name;
|
||||
if (is_dir($target)) {
|
||||
$this->delTree($target);
|
||||
}
|
||||
if (rename($dir.DIRECTORY_SEPARATOR.$name, $target)) {
|
||||
if (self::localMoveRecursive($dir.DIRECTORY_SEPARATOR.$name, $target, true, $this->options['copyJoin'])) {
|
||||
$result[] = $target;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user