1
0
Fork 0

Filesystem: use fast operation first in emptyDirectory()

pull/9616/head
Markus Staab 2021-01-16 22:45:41 +01:00
parent de58c5499e
commit 6774e7ee29
1 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ class Filesystem
public function emptyDirectory($dir, $ensureDirectoryExists = true) public function emptyDirectory($dir, $ensureDirectoryExists = true)
{ {
if (file_exists($dir) && is_link($dir)) { if (is_link($dir) && file_exists($dir)) {
$this->unlink($dir); $this->unlink($dir);
} }