diff options
author | Vinicius Cubas Brand <viniciuscb@gmail.com> | 2017-02-23 13:32:16 -0300 |
---|---|---|
committer | Vinicius Cubas Brand <viniciuscb@gmail.com> | 2017-03-14 10:06:50 -0300 |
commit | 13e50cbcd7872bfa40a68622958ec6a4236af9ee (patch) | |
tree | 1f3b574f474a9271a6a4461a18129212146c8471 /lib/private/Files | |
parent | 8adf61772676bfe71e338fc1c009359135eb381e (diff) | |
download | nextcloud-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 'lib/private/Files')
-rw-r--r-- | lib/private/Files/Storage/Common.php | 7 | ||||
-rw-r--r-- | lib/private/Files/Storage/Wrapper/Wrapper.php | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/lib/private/Files/Storage/Common.php b/lib/private/Files/Storage/Common.php index 5561f6a889b..e3176828364 100644 --- a/lib/private/Files/Storage/Common.php +++ b/lib/private/Files/Storage/Common.php @@ -711,4 +711,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(); + } } |