fix: updating snapshots in --parallel

This commit is contained in:
nuno maduro
2026-04-15 07:22:10 -07:00
parent 4e03cd3edb
commit 0dd1aa72ef
2 changed files with 7 additions and 6 deletions

View File

@ -59,8 +59,10 @@ final class SnapshotRepository
{
$snapshotFilename = $this->getSnapshotFilename();
if (! file_exists(dirname($snapshotFilename))) {
mkdir(dirname($snapshotFilename), 0755, true);
$directory = dirname($snapshotFilename);
if (! is_dir($directory)) {
@mkdir($directory, 0755, true);
}
file_put_contents($snapshotFilename, $snapshot);