Signed-off-by: Vinicius Cubas Brand <viniciuscb@gmail.com>
*/
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();
}
/**
public function setAvailability($isAvailable) {
$this->getStorageCache()->setAvailability($isAvailable);
}
+
+ /**
+ * @return bool
+ */
+ public function needsPartFile() {
+ return true;
+ }
}
$this->getWrapperStorage()->changeLock($path, $type, $provider);
}
}
+
+ /**
+ * @return bool
+ */
+ public function needsPartFile() {
+ return $this->getWrapperStorage()->needsPartFile();
+ }
}
* @param bool $isAvailable
*/
public function setAvailability($isAvailable);
+
+ public function needsPartFile();
}