summaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorVinicius Cubas Brand <viniciuscb@gmail.com>2017-02-23 13:32:16 -0300
committerVinicius Cubas Brand <viniciuscb@gmail.com>2017-03-14 10:06:50 -0300
commit13e50cbcd7872bfa40a68622958ec6a4236af9ee (patch)
tree1f3b574f474a9271a6a4461a18129212146c8471 /apps/dav
parent8adf61772676bfe71e338fc1c009359135eb381e (diff)
downloadnextcloud-server-13e50cbcd7872bfa40a68622958ec6a4236af9ee.tar.gz
nextcloud-server-13e50cbcd7872bfa40a68622958ec6a4236af9ee.zip
added method needsPartFile() in Storage
Signed-off-by: Vinicius Cubas Brand <viniciuscb@gmail.com>
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/lib/Connector/Sabre/File.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/dav/lib/Connector/Sabre/File.php b/apps/dav/lib/Connector/Sabre/File.php
index d0826ee5a8c..0e535314c2e 100644
--- a/apps/dav/lib/Connector/Sabre/File.php
+++ b/apps/dav/lib/Connector/Sabre/File.php
@@ -505,9 +505,9 @@ class File extends Node implements IFile {
*/
private function needsPartFile($storage) {
// TODO: in the future use ChunkHandler provided by storage
- // and/or add method on Storage called "needsPartFile()"
return !$storage->instanceOfStorage('OCA\Files_Sharing\External\Storage') &&
- !$storage->instanceOfStorage('OC\Files\Storage\OwnCloud');
+ !$storage->instanceOfStorage('OC\Files\Storage\OwnCloud') &&
+ $storage->needsPartFile();
}
/**