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); } }