TemporaryLocalFileStorage::__destruct(): handle symlinks as expected

This commit is contained in:
Alexander A. Klimov 2017-12-14 16:55:56 +01:00 committed by Thomas Gelf
parent 02e24699fd
commit 7ae6e537d1
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class TemporaryLocalFileStorage extends LocalFileStorage
foreach ($directoryIterator as $path => $entry) {
/** @var \SplFileInfo $entry */
if ($entry->isDir()) {
if ($entry->isDir() && ! $entry->isLink()) {
rmdir($path);
} else {
unlink($path);