We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5b1ffe commit a15c44aCopy full SHA for a15c44a
src/Utils/Zip.php
@@ -106,15 +106,15 @@ public function unpack(string $sourcePath, ?string $dirname = null): ?string
106
return null;
107
}
108
109
- public function ensureDoesntHaveSubdir(string $sourcePath)
+ public function ensureDoesntHaveSubdir(string $sourcePath): string
110
{
111
$targetPath = $sourcePath ?? storage_path('app/extensions/.tmp');
112
113
$pattern = sprintf("%s/*", rtrim($sourcePath, DIRECTORY_SEPARATOR));
114
$files = File::glob($pattern);
115
116
if (count($files) > 1) {
117
- return false;
+ return $targetPath;
118
119
120
$tmpDir = $targetPath . '-subdir';
0 commit comments