summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-04-20 18:36:23 +0200
committerVincent Petry <pvince81@owncloud.com>2015-04-20 18:36:23 +0200
commita13088818a73ecdf6f7d6600c011e0fa49054b51 (patch)
tree1302033aec7a663cf9d8a12e61f17db56701641a /apps
parentfe2cbc37951ea25e3d545d78289c64542ef58eca (diff)
parent32995ace1c1ea453e08b1afd6f6d43cf68f2e3b1 (diff)
downloadnextcloud-server-a13088818a73ecdf6f7d6600c011e0fa49054b51.tar.gz
nextcloud-server-a13088818a73ecdf6f7d6600c011e0fa49054b51.zip
Merge pull request #15748 from owncloud/fixing-enc-filesize-once-more
Introduce Storage::getData() to allow storage implementations more contr...
Diffstat (limited to 'apps')
-rw-r--r--apps/files_external/lib/dropbox.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/files_external/lib/dropbox.php b/apps/files_external/lib/dropbox.php
index b685f635aea..78219f8f06e 100644
--- a/apps/files_external/lib/dropbox.php
+++ b/apps/files_external/lib/dropbox.php
@@ -77,7 +77,7 @@ class Dropbox extends \OC\Files\Storage\Common {
* @return mixed directory contents if $list is true, file metadata if $list is
* false, null if the file doesn't exist or "false" if the operation failed
*/
- private function getMetaData($path, $list = false) {
+ private function getDropBoxMetaData($path, $list = false) {
$path = $this->root.$path;
if ( ! $list && isset($this->metaData[$path])) {
return $this->metaData[$path];
@@ -150,7 +150,7 @@ class Dropbox extends \OC\Files\Storage\Common {
}
public function opendir($path) {
- $contents = $this->getMetaData($path, true);
+ $contents = $this->getDropBoxMetaData($path, true);
if ($contents !== false) {
$files = array();
foreach ($contents as $file) {
@@ -163,7 +163,7 @@ class Dropbox extends \OC\Files\Storage\Common {
}
public function stat($path) {
- $metaData = $this->getMetaData($path);
+ $metaData = $this->getDropBoxMetaData($path);
if ($metaData) {
$stat['size'] = $metaData['bytes'];
$stat['atime'] = time();
@@ -177,7 +177,7 @@ class Dropbox extends \OC\Files\Storage\Common {
if ($path == '' || $path == '/') {
return 'dir';
} else {
- $metaData = $this->getMetaData($path);
+ $metaData = $this->getDropBoxMetaData($path);
if ($metaData) {
if ($metaData['is_dir'] == 'true') {
return 'dir';
@@ -193,7 +193,7 @@ class Dropbox extends \OC\Files\Storage\Common {
if ($path == '' || $path == '/') {
return true;
}
- if ($this->getMetaData($path)) {
+ if ($this->getDropBoxMetaData($path)) {
return true;
}
return false;
@@ -213,7 +213,7 @@ class Dropbox extends \OC\Files\Storage\Common {
public function rename($path1, $path2) {
try {
// overwrite if target file exists and is not a directory
- $destMetaData = $this->getMetaData($path2);
+ $destMetaData = $this->getDropBoxMetaData($path2);
if (isset($destMetaData) && $destMetaData !== false && !$destMetaData['is_dir']) {
$this->unlink($path2);
}
@@ -297,7 +297,7 @@ class Dropbox extends \OC\Files\Storage\Common {
if ($this->filetype($path) == 'dir') {
return 'httpd/unix-directory';
} else {
- $metaData = $this->getMetaData($path);
+ $metaData = $this->getDropBoxMetaData($path);
if ($metaData) {
return $metaData['mime_type'];
}