diff options
author | Robin Appelman <robin@icewind.nl> | 2019-02-27 15:35:44 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2019-02-27 15:35:44 +0100 |
commit | 8fc47c6f002dd47518cea34ec5fe113fa5b915b7 (patch) | |
tree | d414e72b5285a342b000f1f514d73e37964034cc /apps/files_trashbin/lib | |
parent | 407c7c2ad356baf83cadbc5edb9db49146766650 (diff) | |
download | nextcloud-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.php | 6 |
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(); } |