summaryrefslogtreecommitdiffstats
path: root/lib/private/files/storage/wrapper
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-04-20 14:54:54 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-04-20 14:54:54 +0200
commit23f1bdc3d4682dbb2e8d1a82921d62dbe0b213be (patch)
treef1a078e04f4d577cd03355c880257977e5e3f295 /lib/private/files/storage/wrapper
parent92b60e36de8d89e8ea7c4781a8c5d5fa4371b7c3 (diff)
downloadnextcloud-server-23f1bdc3d4682dbb2e8d1a82921d62dbe0b213be.tar.gz
nextcloud-server-23f1bdc3d4682dbb2e8d1a82921d62dbe0b213be.zip
Introduce Storage::getMetaData() to allow storage implementations more control over the data array
Diffstat (limited to 'lib/private/files/storage/wrapper')
-rw-r--r--lib/private/files/storage/wrapper/encryption.php6
-rw-r--r--lib/private/files/storage/wrapper/wrapper.php6
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/private/files/storage/wrapper/encryption.php b/lib/private/files/storage/wrapper/encryption.php
index df91b7189dc..125e5f0f57e 100644
--- a/lib/private/files/storage/wrapper/encryption.php
+++ b/lib/private/files/storage/wrapper/encryption.php
@@ -111,11 +111,11 @@ class Encryption extends Wrapper {
}
/**
- * @param $path
+ * @param string $path
* @return array
*/
- public function getData($path) {
- $data = $this->storage->getData($path);
+ public function getMetaData($path) {
+ $data = $this->storage->getMetaData($path);
$fullPath = $this->getFullPath($path);
if (isset($this->unencryptedSize[$fullPath])) {
diff --git a/lib/private/files/storage/wrapper/wrapper.php b/lib/private/files/storage/wrapper/wrapper.php
index 0bea457c877..f3dc09db138 100644
--- a/lib/private/files/storage/wrapper/wrapper.php
+++ b/lib/private/files/storage/wrapper/wrapper.php
@@ -527,10 +527,10 @@ class Wrapper implements \OC\Files\Storage\Storage {
}
/**
- * @param $path
+ * @param string $path
* @return array
*/
- public function getData($path) {
- return $this->storage->getData($path);
+ public function getMetaData($path) {
+ return $this->storage->getMetaData($path);
}
}