Skip to content

Commit 6a03d7f

Browse files
committedJun 28, 2024
[Filesystem] Fix Filesystem::remove() on Windows
1 parent 26dd991 commit 6a03d7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎Filesystem.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ private static function doRemove(array $files, bool $isRecursive): void
173173
}
174174
} elseif (is_dir($file)) {
175175
if (!$isRecursive) {
176-
$tmpName = \dirname(realpath($file)).'/.'.strrev(strtr(base64_encode(random_bytes(2)), '/=', '-_'));
176+
$tmpName = \dirname(realpath($file)).'/.!'.strrev(strtr(base64_encode(random_bytes(2)), '/=', '-!'));
177177

178178
if (file_exists($tmpName)) {
179179
try {

0 commit comments

Comments
 (0)
Please sign in to comment.