Skip to content

Commit

Permalink
fix: unzip exception
Browse files Browse the repository at this point in the history
  • Loading branch information
jevantang committed Jul 20, 2023
1 parent 561db04 commit a443756
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Support/Zip.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public function ensureDoesntHaveSubdir(string $targetPath): string
$tmpDir = $targetPath.'-subdir';
File::ensureDirectoryExists($tmpDir);

$firstEntryname = File::name(current($files));
$firstEntryname = File::basename(current($files));

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

0 comments on commit a443756

Please sign in to comment.