Skip to content

Commit 3cd0635

Browse files
committed
Ensure we create the vendor dir in metadata if not present
1 parent 6962181 commit 3cd0635

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Controller/InternalController.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ public function updateMetadataAction(Request $req): Response
5252
}
5353

5454
$path = $this->metadataDir . '/' . $path.'.gz';
55+
if (!is_dir(dirname($path))) {
56+
mkdir(dirname($path), recursive: true);
57+
}
5558
file_put_contents($path.'.tmp', $gzipped);
5659
touch($path.'.tmp', $filemtime);
5760
rename($path.'.tmp', $path);

0 commit comments

Comments
 (0)