summaryrefslogtreecommitdiffstats
path: root/lib
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 /lib
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 'lib')
-rw-r--r--lib/private/Files/Storage/Common.php7
-rw-r--r--lib/private/Files/Storage/Wrapper/Wrapper.php7
-rw-r--r--lib/public/Files/Storage.php2
3 files changed, 16 insertions, 0 deletions
diff --git a/lib/private/Files/Storage/Common.php b/lib/private/Files/Storage/Common.php
index 6e5799be34c..5a57532f71c 100644
--- a/lib/private/Files/Storage/Common.php
+++ b/lib/private/Files/Storage/Common.php
@@ -795,4 +795,11 @@ abstract class Common implements Storage, ILockingStorage {
public function setAvailability($isAvailable) {
$this->getStorageCache()->setAvailability($isAvailable);
}
+
+ /**
+ * @return bool
+ */
+ public function needsPartFile() {
+ return true;
+ }
}
diff --git a/lib/private/Files/Storage/Wrapper/Wrapper.php b/lib/private/Files/Storage/Wrapper/Wrapper.php
index 71b64d8c82c..d7cd4b729db 100644
--- a/lib/private/Files/Storage/Wrapper/Wrapper.php
+++ b/lib/private/Files/Storage/Wrapper/Wrapper.php
@@ -610,4 +610,11 @@ class Wrapper implements \OC\Files\Storage\Storage, ILockingStorage {
$this->getWrapperStorage()->changeLock($path, $type, $provider);
}
}
+
+ /**
+ * @return bool
+ */
+ public function needsPartFile() {
+ return $this->getWrapperStorage()->needsPartFile();
+ }
}
diff --git a/lib/public/Files/Storage.php b/lib/public/Files/Storage.php
index 1532c84b621..213bbc0e549 100644
--- a/lib/public/Files/Storage.php
+++ b/lib/public/Files/Storage.php
@@ -458,4 +458,6 @@ interface Storage extends IStorage {
* @param bool $isAvailable
*/
public function setAvailability($isAvailable);
+
+ public function needsPartFile();
}