We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bb74261 + ab96474 commit 5928d1aCopy full SHA for 5928d1a
src/LfmStorageRepository.php
@@ -57,7 +57,11 @@ public function makeDirectory()
57
{
58
$this->disk->makeDirectory($this->path, ...func_get_args());
59
60
- $this->disk->setVisibility($this->path, 'public');
+ // some filesystems (e.g. Google Storage, S3?) don't let you set ACLs on directories (because they don't exist)
61
+ // https://cloud.google.com/storage/docs/naming#object-considerations
62
+ if ($this->disk->has($this->path)) {
63
+ $this->disk->setVisibility($this->path, 'public');
64
+ }
65
}
66
67
public function extension()
0 commit comments