fileManager fixes

This commit is contained in:
Taras Machyshyn
2014-10-09 17:24:48 +03:00
parent 304078420c
commit 363aea4c96
+5 -1
View File
@@ -381,7 +381,7 @@ class Manager
}
}
} else {
$fileList = is_file($sourcePath) ? (array) $sourcePath : $this->getFileList($sourcePath, $recursively, '', 'all', true);
$fileList = is_file($sourcePath) ? (array) $sourcePath : $this->getFileList($sourcePath, $recursively, '', 'file', true);
}
/** Check permission before copying */
@@ -394,8 +394,12 @@ class Manager
$destFile = $this->concatPaths(array($destPath, $file));
$isFileExists = file_exists($destFile);
if ($this->checkCreateFile($destFile) === false) {
$permissionDeniedList[] = $destFile;
} else if (!$isFileExists) {
$this->removeFile($destFile);
}
}
/** END */