From b969bc927c9c6b9190024967a44d1fbffb59aded Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 28 Sep 2023 21:49:15 +0000 Subject: [PATCH] impl. permission check --- System/File/Local/Directory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/System/File/Local/Directory.php b/System/File/Local/Directory.php index 63398116a..b51786246 100755 --- a/System/File/Local/Directory.php +++ b/System/File/Local/Directory.php @@ -305,7 +305,7 @@ final class Directory extends FileAbstract implements DirectoryInterface if (\is_dir($path . '/' . $file)) { self::delete($path . '/' . $file); - } else { + } elseif (\is_writable($path . '/' . $file)) { \unlink($path . '/' . $file); } }