Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d360f94

Browse files
committed
chmod snapshot folders and files
1 parent fb5cd82 commit d360f94

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
@@ -63,9 +63,11 @@ public function put(string $filename, string $contents): void
6363
{
6464
if (! file_exists($this->basePath)) {
6565
mkdir($this->basePath, 0777, true);
66+
chmod($this->basePath, 0777);
6667
}
6768

6869
file_put_contents($this->path($filename), $contents);
70+
chmod($this->path($filename), 0666);
6971
}
7072

7173
public function delete(string $fileName): bool
@@ -77,9 +79,11 @@ public function copy(string $filePath, string $fileName): void
7779
{
7880
if (! file_exists($this->basePath)) {
7981
mkdir($this->basePath, 0777, true);
82+
chmod($this->basePath, 0777);
8083
}
8184

8285
copy($filePath, $this->path($fileName));
86+
chmod($this->path($filename), 0666);
8387
}
8488

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

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /