Skip to content

Commit d5d6116

Browse files
Merge pull request #42 from SjorsO/patch-1
Allow recursive mkdir
2 parents ce94b91 + f144216 commit d5d6116

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
@@ -66,7 +66,7 @@ public function read(string $filename): string
6666
public function put(string $filename, string $contents)
6767
{
6868
if (! file_exists($this->basePath)) {
69-
mkdir($this->basePath);
69+
mkdir($this->basePath, 0777, true);
7070
}
7171

7272
file_put_contents($this->path($filename), $contents);

0 commit comments

Comments
 (0)