I have updated my app to Laravel 9 and have an issue when creating a directory with the League Flysystem SFTP adapter v3 and the Laravel Storage Facade. It seems that the Facade does not allow to change the directory permissions when using the makeDirectory method, whose signature is : public function makeDirectory($path) {}
By default the directory permissions are set to drwx------ but I need drwxr-xr-x.
I was able to do it by calling the getDriver()->createDirectory method on the Storage::disk('sftp') instance :
Storage::disk('sftp')->getDriver()->createDirectory($path, [
Config::OPTION_DIRECTORY_VISIBILITY => 'public'
]);
But why does the Laravel facade does not provide a way to set the directory permissions ?
Thanks