Skip to content

Commit

Permalink
fix: fix local adapter private directory visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
olegkhuss committed Mar 8, 2024
1 parent 6e5eb9d commit bcebdc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Local/LocalFilesystemAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ public function visibility(string $path): FileAttributes
}

$permissions = $fileperms & 0777;
$visibility = $this->visibility->inverseForFile($permissions);
$visibility = is_dir($location) ? $this->visibility->inverseForDirectory($permissions) : $this->visibility->inverseForFile($permissions);

return new FileAttributes($path, null, $visibility);
}
Expand Down

0 comments on commit bcebdc7

Please sign in to comment.