aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-02-08 16:38:00 +0100
committerRobin Appelman <robin@icewind.nl>2017-02-08 16:38:00 +0100
commitad5d04ccbead4ca5f401f588b35639b4c8e44f73 (patch)
treed6dcd1dcfe7a6293f4d8760bb06dfdb58c8f8023
parent1a591cea97313b8500154d6c2c9ce3aaf2f38a88 (diff)
downloadnextcloud-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.php3
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) {