Skip to content

Commit 03ae205

Browse files
authored
Merge pull request #64 from SjorsO/patch-1
Allow recursive mkdir for file snapshots
2 parents 4fcadbe + 29d364f commit 03ae205

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Filesystem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function delete(string $fileName)
8080
public function copy(string $filePath, string $fileName)
8181
{
8282
if (! file_exists($this->basePath)) {
83-
mkdir($this->basePath);
83+
mkdir($this->basePath, 0777, true);
8484
}
8585

8686
copy($filePath, $this->path($fileName));

0 commit comments

Comments
 (0)