We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd216ad commit bc14bfaCopy full SHA for bc14bfa
src/Support/Zip.php
@@ -129,7 +129,7 @@ public function ensureDoesntHaveSubdir(string $targetPath): string
129
$tmpDir = $targetPath.'-subdir';
130
File::ensureDirectoryExists($tmpDir);
131
132
- $firstEntryname = File::name(current($files));
+ $firstEntryname = File::basename(current($files));
133
134
File::copyDirectory($targetPath."/{$firstEntryname}", $tmpDir);
135
File::cleanDirectory($targetPath);
0 commit comments