Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2018-09-29 22:10:40 +0300
committerDaniel Kesselberg <mail@danielkesselberg.de>2019-09-23 15:03:40 +0300
commit963d35c78c80181591a314cb89b58448fa17de9e (patch)
treea2c045b4bfab9e3dd4242ab7dda0518e09a8350f /apps/files_external/lib
parent010473ca1fab51f5df3cccc51dd42b0271b0e867 (diff)
Rename $location to $path
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'apps/files_external/lib')
-rw-r--r--apps/files_external/lib/Lib/Storage/AmazonS3.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/files_external/lib/Lib/Storage/AmazonS3.php b/apps/files_external/lib/Lib/Storage/AmazonS3.php
index 403dddc9106..c935d500200 100644
--- a/apps/files_external/lib/Lib/Storage/AmazonS3.php
+++ b/apps/files_external/lib/Lib/Storage/AmazonS3.php
@@ -148,30 +148,30 @@ class AmazonS3 extends \OC\Files\Storage\Common {
* Implementation from flysystem-aws-s3-v3:
* https://github.com/thephpleague/flysystem-aws-s3-v3/blob/8241e9cc5b28f981e0d24cdaf9867f14c7498ae4/src/AwsS3Adapter.php#L670-L694
*
- * @param $location
+ * @param $path
* @return bool
* @throws \Exception
*/
- protected function doesDirectoryExist($location) {
- if (!isset($this->directoryCache[$location])) {
+ protected function doesDirectoryExist($path) {
+ if (!isset($this->directoryCache[$path])) {
// Maybe this isn't an actual key, but a prefix.
// Do a prefix listing of objects to determine.
try {
$result = $this->getConnection()->listObjects([
'Bucket' => $this->bucket,
- 'Prefix' => rtrim($location, '/') . '/',
+ 'Prefix' => rtrim($path, '/') . '/',
'MaxKeys' => 1,
]);
- $this->directoryCache[$location] = $result['Contents'] || $result['CommonPrefixes'];
+ $this->directoryCache[$path] = $result['Contents'] || $result['CommonPrefixes'];
} catch (S3Exception $e) {
if ($e->getStatusCode() === 403) {
- $this->directoryCache[$location] = false;
+ $this->directoryCache[$path] = false;
}
throw $e;
}
}
- return $this->directoryCache[$location];
+ return $this->directoryCache[$path];
}
/**