Skip to content

Commit 983e6de

Browse files
Merge pull request #100 from utopia-php/fix-symlink-deletion
FIx: Symlink deletion
2 parents e1d4f22 + 5145685 commit 983e6de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Storage/Device/Local.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ public function delete(string $path, bool $recursive = false): bool
339339
}
340340

341341
\rmdir($path);
342-
} elseif (\is_file($path)) {
342+
} elseif (\is_file($path) || \is_link($path)) {
343343
return \unlink($path);
344344
}
345345

0 commit comments

Comments
 (0)