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 /lib/public/Files/FileInfo.php | |
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 'lib/public/Files/FileInfo.php')
-rw-r--r-- | lib/public/Files/FileInfo.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/public/Files/FileInfo.php b/lib/public/Files/FileInfo.php index e25a47e83cd..c256f0980f0 100644 --- a/lib/public/Files/FileInfo.php +++ b/lib/public/Files/FileInfo.php @@ -81,10 +81,11 @@ interface FileInfo { /** * Get the size in bytes for the file or folder * + * @param bool $includeMounts whether or not to include the size of any sub mounts, since 16.0.0 * @return int * @since 7.0.0 */ - public function getSize(); + public function getSize($includeMounts = true); /** * Get the last modified date as timestamp for the file or folder |