summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2019-02-27 15:35:44 +0100
committerRobin Appelman <robin@icewind.nl>2019-02-27 15:35:44 +0100
commit8fc47c6f002dd47518cea34ec5fe113fa5b915b7 (patch)
treed414e72b5285a342b000f1f514d73e37964034cc /apps/files_trashbin/lib
parent407c7c2ad356baf83cadbc5edb9db49146766650 (diff)
downloadnextcloud-server-8fc47c6f002dd47518cea34ec5fe113fa5b915b7.tar.gz
nextcloud-server-8fc47c6f002dd47518cea34ec5fe113fa5b915b7.zip
add option to get raw size (without submounts) from fileinfo
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_trashbin/lib')
-rw-r--r--apps/files_trashbin/lib/Trash/TrashItem.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_trashbin/lib/Trash/TrashItem.php b/apps/files_trashbin/lib/Trash/TrashItem.php
index 40ceb59abaa..a0a0e1f67ce 100644
--- a/apps/files_trashbin/lib/Trash/TrashItem.php
+++ b/apps/files_trashbin/lib/Trash/TrashItem.php
@@ -82,8 +82,8 @@ class TrashItem implements ITrashItem {
return $this->fileInfo->getEtag();
}
- public function getSize() {
- return $this->fileInfo->getSize();
+ public function getSize($includeMounts = true) {
+ return $this->fileInfo->getSize($includeMounts);
}
public function getMtime() {
@@ -133,7 +133,7 @@ class TrashItem implements ITrashItem {
public function isReadable() {
return $this->fileInfo->isReadable();
}
-
+
public function isUpdateable() {
return $this->fileInfo->isUpdateable();
}