File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments