summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-02-15 14:42:37 +0100
committerRobin Appelman <icewind@owncloud.com>2012-02-15 14:43:06 +0100
commitc2fb5fed029a77f4cdcd6a8b9a6308ef40091639 (patch)
tree9b7cc32ee2560d86315339b9716c1a790a680afc /lib
parente6b835bea8fd153b580785c764fb36efae28ade8 (diff)
downloadnextcloud-server-c2fb5fed029a77f4cdcd6a8b9a6308ef40091639.tar.gz
nextcloud-server-c2fb5fed029a77f4cdcd6a8b9a6308ef40091639.zip
use cached size for getting the size of a moved file
Diffstat (limited to 'lib')
-rw-r--r--lib/filecache.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/filecache.php b/lib/filecache.php
index 921d4a27902..6ae2f8253db 100644
--- a/lib/filecache.php
+++ b/lib/filecache.php
@@ -380,8 +380,7 @@ class OC_FileCache{
$fullOldPath=$root.$oldPath;
$fullNewPath=$root.$newPath;
if(($id=self::getFileId($fullOldPath))!=-1){
- $oldInfo=self::get($fullOldPath);
- $oldSize=$oldInfo['size'];
+ $oldSize=self::getCachedSize($oldPath,$root);
}else{
return;
}