diff options
author | Robin Appelman <robin@icewind.nl> | 2017-02-08 16:38:00 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2017-02-08 16:38:00 +0100 |
commit | ad5d04ccbead4ca5f401f588b35639b4c8e44f73 (patch) | |
tree | d6dcd1dcfe7a6293f4d8760bb06dfdb58c8f8023 | |
parent | 1a591cea97313b8500154d6c2c9ce3aaf2f38a88 (diff) | |
download | nextcloud-server-ad5d04ccbead4ca5f401f588b35639b4c8e44f73.tar.gz nextcloud-server-ad5d04ccbead4ca5f401f588b35639b4c8e44f73.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) { |