Skip to content

Commit 62528ea

Browse files
committed
chmod snapshot folders and files
1 parent eb21b81 commit 62528ea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Filesystem.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,11 @@ public function put(string $filename, string $contents): void
5959
{
6060
if (! file_exists($this->basePath)) {
6161
mkdir($this->basePath, 0777, true);
62+
chmod($this->basePath, 0777);
6263
}
6364

6465
file_put_contents($this->path($filename), $contents);
66+
chmod($this->path($filename), 0666);
6567
}
6668

6769
public function delete(string $fileName): bool
@@ -73,9 +75,11 @@ public function copy(string $filePath, string $fileName): void
7375
{
7476
if (! file_exists($this->basePath)) {
7577
mkdir($this->basePath, 0777, true);
78+
chmod($this->basePath, 0777);
7679
}
7780

7881
copy($filePath, $this->path($fileName));
82+
chmod($this->path($filename), 0666);
7983
}
8084

8185
public function fileEquals(string $filePath, string $fileName): bool

0 commit comments

Comments
 (0)