Skip to content

Commit bc14bfa

Browse files
committed
fix: unzip exception
1 parent cd216ad commit bc14bfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Support/Zip.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public function ensureDoesntHaveSubdir(string $targetPath): string
129129
$tmpDir = $targetPath.'-subdir';
130130
File::ensureDirectoryExists($tmpDir);
131131

132-
$firstEntryname = File::name(current($files));
132+
$firstEntryname = File::basename(current($files));
133133

134134
File::copyDirectory($targetPath."/{$firstEntryname}", $tmpDir);
135135
File::cleanDirectory($targetPath);

0 commit comments

Comments
 (0)