aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2017-03-14 15:14:59 +0100
committerGitHub <noreply@github.com>2017-03-14 15:14:59 +0100
commit6565533d3ba7230959fd51e5355871b392eb5df2 (patch)
treec9732ab9107ef270e8e41c69b7ce53a55ee52181 /apps
parent3c2312fb09ccc97652c9c1794e02d2111c1d4df5 (diff)
parent13e50cbcd7872bfa40a68622958ec6a4236af9ee (diff)
downloadnextcloud-server-6565533d3ba7230959fd51e5355871b392eb5df2.tar.gz
nextcloud-server-6565533d3ba7230959fd51e5355871b392eb5df2.zip
Merge pull request #3600 from coletivoEITA/master
added method needsPartFile() in Storage
Diffstat (limited to 'apps')
-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 391d42393f5..1f878df1564 100644
--- a/apps/dav/lib/Connector/Sabre/File.php
+++ b/apps/dav/lib/Connector/Sabre/File.php
@@ -510,9 +510,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();
}
/**