diff options
author | Robin Appelman <robin@icewind.nl> | 2017-02-08 16:38:00 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2017-02-16 13:38:45 +0100 |
commit | 8cf62e21b598643bd648ba9cf95d956d126a60e5 (patch) | |
tree | 86553a4177f152846a74e8b04c8774211292ec02 | |
parent | 8296f1a35bac0aede08c33d10233d1ee3bf0e15a (diff) | |
download | nextcloud-server-8cf62e21b598643bd648ba9cf95d956d126a60e5.tar.gz nextcloud-server-8cf62e21b598643bd648ba9cf95d956d126a60e5.zip |
return unknown free space from nullstorage
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r-- | lib/private/Lockdown/Filesystem/NullStorage.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/Lockdown/Filesystem/NullStorage.php b/lib/private/Lockdown/Filesystem/NullStorage.php index 967b6d2c6e7..ea911b90064 100644 --- a/lib/private/Lockdown/Filesystem/NullStorage.php +++ b/lib/private/Lockdown/Filesystem/NullStorage.php @@ -20,6 +20,7 @@ namespace OC\Lockdown\Filesystem; use Icewind\Streams\IteratorDirectory; +use OC\Files\FileInfo; use OC\Files\Storage\Common; class NullStorage extends Common { @@ -128,7 +129,7 @@ class NullStorage extends Common { } public function free_space($path) { - return 0; + return FileInfo::SPACE_UNKNOWN; } public function touch($path, $mtime = null) { |