diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2017-03-14 15:14:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-14 15:14:59 +0100 |
commit | 6565533d3ba7230959fd51e5355871b392eb5df2 (patch) | |
tree | c9732ab9107ef270e8e41c69b7ce53a55ee52181 /lib | |
parent | 3c2312fb09ccc97652c9c1794e02d2111c1d4df5 (diff) | |
parent | 13e50cbcd7872bfa40a68622958ec6a4236af9ee (diff) | |
download | nextcloud-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.php | 7 | ||||
-rw-r--r-- | lib/private/Files/Storage/Wrapper/Wrapper.php | 7 | ||||
-rw-r--r-- | lib/public/Files/Storage.php | 2 |
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(); } |