Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-02-08 18:38:00 +0300
committerRobin Appelman <robin@icewind.nl>2017-02-16 15:38:45 +0300
commit8cf62e21b598643bd648ba9cf95d956d126a60e5 (patch)
tree86553a4177f152846a74e8b04c8774211292ec02
parent8296f1a35bac0aede08c33d10233d1ee3bf0e15a (diff)
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) {