diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-06-03 19:05:21 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-06-03 19:05:21 +0200 |
commit | 8ee15025f06b683673101c5604b10798c75a76ae (patch) | |
tree | 4ad77e4d973c04ea5ede80e0a640a38fa20065b1 /apps/files_versions/lib | |
parent | 2bb902d02864aa73d0985537552df4b076f5860b (diff) | |
download | nextcloud-server-8ee15025f06b683673101c5604b10798c75a76ae.tar.gz nextcloud-server-8ee15025f06b683673101c5604b10798c75a76ae.zip |
Fix merge conflict
Diffstat (limited to 'apps/files_versions/lib')
-rw-r--r-- | apps/files_versions/lib/versions.php | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/apps/files_versions/lib/versions.php b/apps/files_versions/lib/versions.php index 8dc01d18ad9..15d0e032ea0 100644 --- a/apps/files_versions/lib/versions.php +++ b/apps/files_versions/lib/versions.php @@ -313,38 +313,7 @@ class Storage { } /** -<<<<<<< HEAD - * get the size of all stored versions from a given user - * @param string $uid id from the user - * @return int size of versions - */ - private static function calculateSize($uid) { - if (\OCP\Config::getSystemValue('files_versions', Storage::DEFAULTENABLED) == 'true') { - $view = new \OC\Files\View('/' . $uid . '/files_versions'); - - $size = 0; - - $dirContent = $view->getDirectoryContent('/'); - - while (!empty($dirContent)) { - $path = reset($dirContent); - if ($path['type'] === 'dir') { - $dirContent = array_merge($dirContent, $view->getDirectoryContent(substr($path['path'], strlen('files_versions')))); - } else { - $size += $view->filesize(substr($path['path'], strlen('files_versions'))); - } - unset($dirContent[key($dirContent)]); - } - - return $size; - } - } - - /** * returns all stored file versions from a given user -======= - * @brief returns all stored file versions from a given user ->>>>>>> 2f97e2f... let file cache handle the versions size * @param string $uid id of the user * @return array with contains two arrays 'all' which contains all versions sorted by age and 'by_file' which contains all versions sorted by filename */ |