Avoid checking if dir is empty if it does not even exist
parent
8ac5d787b7
commit
b01cd459b7
|
@ -139,8 +139,7 @@ abstract class ArchiveDownloader extends FileDownloader
|
|||
$renameAsOne = false;
|
||||
if (!file_exists($path)) {
|
||||
$renameAsOne = true;
|
||||
}
|
||||
if ($filesystem->isDirEmpty($path)) {
|
||||
} elseif ($filesystem->isDirEmpty($path)) {
|
||||
try {
|
||||
if ($filesystem->removeDirectoryPhp($path)) {
|
||||
$renameAsOne = true;
|
||||
|
|
Loading…
Reference in New Issue