Closed SamMousa closed 6 years ago
I will look into this. Adapters do not return the uid or gid.
One option is to pass in a different permission array when registering the stream wrapper.
$options = [
'permissions' => [
'dir' => [
'private' => 0700,
'public' => 0777,
],
'file' => [
'private' => 0600,
'public' => 0666,
],
],
];
FlysystemStreamWrapper::register('fly', $filesystem, $options)
I've added calls to either posix_getuid()
or getmyuid()
to set the uid and gid of returned files.
For me
is_writable
always returns false because theuid
andgid
are always set to0
.Currently
Stat::mergeMeta()
ignores anyuid
orgid
returned from the adapter; would it not make more sense to use them if they are available?