Skip to content

Commit 237fc53

Browse files
committed
Fix FileSystem remove soft link directory
1 parent 8da3f35 commit 237fc53

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/SPC/store/FileSystem.php

+3
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,9 @@ public static function removeDir(string $dir): bool
367367
}
368368
}
369369
}
370+
if (is_link($dir)) {
371+
return unlink($dir);
372+
}
370373
return rmdir($dir);
371374
}
372375

0 commit comments

Comments
 (0)