impl. permission check

This commit is contained in:
Dennis Eichhorn 2023-09-28 21:49:15 +00:00
parent abff265761
commit b969bc927c

View File

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