more efficient permissions for s3 external storage
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
9b5accf9f3
commit
4bbc1cdc79
|
@ -309,6 +309,14 @@ class AmazonS3 extends \OC\Files\Storage\Common {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getPermissions($path) {
|
||||||
|
$type = $this->filetype($path);
|
||||||
|
if (!$type) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
return $type === 'dir' ? Constants::PERMISSION_ALL : Constants::PERMISSION_ALL - Constants::PERMISSION_CREATE;
|
||||||
|
}
|
||||||
|
|
||||||
public function unlink($path) {
|
public function unlink($path) {
|
||||||
$path = $this->normalizePath($path);
|
$path = $this->normalizePath($path);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue