TemporaryLocalFileStorage::__destruct(): handle symlinks as expected
This commit is contained in:
parent
02e24699fd
commit
7ae6e537d1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue