Skip to content

Commit 25d69dd

Browse files
authored
fix(support): support deleting symlinks using Filesystem\delete (#1847)
1 parent cea59e7 commit 25d69dd

File tree

2 files changed

+133
-57
lines changed

2 files changed

+133
-57
lines changed

packages/support/src/Filesystem/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ function delete(string $path, bool $recursive = true): void
220220
return;
221221
}
222222

223-
if (namespace\is_file($path)) {
223+
if (namespace\is_file($path) || namespace\is_symbolic_link($path)) {
224224
namespace\delete_file($path);
225225
} elseif (namespace\is_directory($path)) {
226226
namespace\delete_directory($path, $recursive);

0 commit comments

Comments
 (0)