return unknown free space from nullstorage

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2017-02-08 16:38:00 +01:00
parent 8296f1a35b
commit 8cf62e21b5
No known key found for this signature in database
GPG Key ID: CBCA68FBAEBF98C9
1 changed files with 2 additions and 1 deletions

View File

@ -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) {