mirror of
https://github.com/nextcloud/server.git
synced 2026-03-04 18:28:08 +01:00
@@ -287,6 +287,16 @@ class AmazonS3 extends \OC\Files\Storage\Common {
|
||||
}
|
||||
}
|
||||
|
||||
public function is_dir($path) {
|
||||
$path = $this->normalizePath($path);
|
||||
try {
|
||||
return $this->isRoot($path) || $this->getConnection()->doesObjectExist($this->bucket, $path . '/');
|
||||
} catch (S3Exception $e) {
|
||||
\OCP\Util::logException('files_external', $e);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public function filetype($path) {
|
||||
$path = $this->normalizePath($path);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user