* @return string
*/
public function getId() {
- return $this->storage->getId();
+ return $this->getWrapperStorage()->getId();
}
/**
* @return bool
*/
public function mkdir($path) {
- return $this->storage->mkdir($path);
+ return $this->getWrapperStorage()->mkdir($path);
}
/**
* @return bool
*/
public function rmdir($path) {
- return $this->storage->rmdir($path);
+ return $this->getWrapperStorage()->rmdir($path);
}
/**
* @return resource
*/
public function opendir($path) {
- return $this->storage->opendir($path);
+ return $this->getWrapperStorage()->opendir($path);
}
/**
* @return bool
*/
public function is_dir($path) {
- return $this->storage->is_dir($path);
+ return $this->getWrapperStorage()->is_dir($path);
}
/**
* @return bool
*/
public function is_file($path) {
- return $this->storage->is_file($path);
+ return $this->getWrapperStorage()->is_file($path);
}
/**
* @return array
*/
public function stat($path) {
- return $this->storage->stat($path);
+ return $this->getWrapperStorage()->stat($path);
}
/**
* @return bool
*/
public function filetype($path) {
- return $this->storage->filetype($path);
+ return $this->getWrapperStorage()->filetype($path);
}
/**
* @return int
*/
public function filesize($path) {
- return $this->storage->filesize($path);
+ return $this->getWrapperStorage()->filesize($path);
}
/**
* @return bool
*/
public function isCreatable($path) {
- return $this->storage->isCreatable($path);
+ return $this->getWrapperStorage()->isCreatable($path);
}
/**
* @return bool
*/
public function isReadable($path) {
- return $this->storage->isReadable($path);
+ return $this->getWrapperStorage()->isReadable($path);
}
/**
* @return bool
*/
public function isUpdatable($path) {
- return $this->storage->isUpdatable($path);
+ return $this->getWrapperStorage()->isUpdatable($path);
}
/**
* @return bool
*/
public function isDeletable($path) {
- return $this->storage->isDeletable($path);
+ return $this->getWrapperStorage()->isDeletable($path);
}
/**
* @return bool
*/
public function isSharable($path) {
- return $this->storage->isSharable($path);
+ return $this->getWrapperStorage()->isSharable($path);
}
/**
* @return int
*/
public function getPermissions($path) {
- return $this->storage->getPermissions($path);
+ return $this->getWrapperStorage()->getPermissions($path);
}
/**
* @return bool
*/
public function file_exists($path) {
- return $this->storage->file_exists($path);
+ return $this->getWrapperStorage()->file_exists($path);
}
/**
* @return int
*/
public function filemtime($path) {
- return $this->storage->filemtime($path);
+ return $this->getWrapperStorage()->filemtime($path);
}
/**
* @return string
*/
public function file_get_contents($path) {
- return $this->storage->file_get_contents($path);
+ return $this->getWrapperStorage()->file_get_contents($path);
}
/**
* @return bool
*/
public function file_put_contents($path, $data) {
- return $this->storage->file_put_contents($path, $data);
+ return $this->getWrapperStorage()->file_put_contents($path, $data);
}
/**
* @return bool
*/
public function unlink($path) {
- return $this->storage->unlink($path);
+ return $this->getWrapperStorage()->unlink($path);
}
/**
* @return bool
*/
public function rename($path1, $path2) {
- return $this->storage->rename($path1, $path2);
+ return $this->getWrapperStorage()->rename($path1, $path2);
}
/**
* @return bool
*/
public function copy($path1, $path2) {
- return $this->storage->copy($path1, $path2);
+ return $this->getWrapperStorage()->copy($path1, $path2);
}
/**
* @return resource
*/
public function fopen($path, $mode) {
- return $this->storage->fopen($path, $mode);
+ return $this->getWrapperStorage()->fopen($path, $mode);
}
/**
* @return string
*/
public function getMimeType($path) {
- return $this->storage->getMimeType($path);
+ return $this->getWrapperStorage()->getMimeType($path);
}
/**
* @return string
*/
public function hash($type, $path, $raw = false) {
- return $this->storage->hash($type, $path, $raw);
+ return $this->getWrapperStorage()->hash($type, $path, $raw);
}
/**
* @return int
*/
public function free_space($path) {
- return $this->storage->free_space($path);
+ return $this->getWrapperStorage()->free_space($path);
}
/**
* @return array
*/
public function search($query) {
- return $this->storage->search($query);
+ return $this->getWrapperStorage()->search($query);
}
/**
* @return bool
*/
public function touch($path, $mtime = null) {
- return $this->storage->touch($path, $mtime);
+ return $this->getWrapperStorage()->touch($path, $mtime);
}
/**
* @return string
*/
public function getLocalFile($path) {
- return $this->storage->getLocalFile($path);
+ return $this->getWrapperStorage()->getLocalFile($path);
}
/**
* returning true for other changes in the folder is optional
*/
public function hasUpdated($path, $time) {
- return $this->storage->hasUpdated($path, $time);
+ return $this->getWrapperStorage()->hasUpdated($path, $time);
}
/**
if (!$storage) {
$storage = $this;
}
- return $this->storage->getCache($path, $storage);
+ return $this->getWrapperStorage()->getCache($path, $storage);
}
/**
if (!$storage) {
$storage = $this;
}
- return $this->storage->getScanner($path, $storage);
+ return $this->getWrapperStorage()->getScanner($path, $storage);
}
* @return string
*/
public function getOwner($path) {
- return $this->storage->getOwner($path);
+ return $this->getWrapperStorage()->getOwner($path);
}
/**
if (!$storage) {
$storage = $this;
}
- return $this->storage->getWatcher($path, $storage);
+ return $this->getWrapperStorage()->getWatcher($path, $storage);
}
public function getPropagator($storage = null) {
if (!$storage) {
$storage = $this;
}
- return $this->storage->getPropagator($storage);
+ return $this->getWrapperStorage()->getPropagator($storage);
}
public function getUpdater($storage = null) {
if (!$storage) {
$storage = $this;
}
- return $this->storage->getUpdater($storage);
+ return $this->getWrapperStorage()->getUpdater($storage);
}
/**
* @return \OC\Files\Cache\Storage
*/
public function getStorageCache() {
- return $this->storage->getStorageCache();
+ return $this->getWrapperStorage()->getStorageCache();
}
/**
* @return string
*/
public function getETag($path) {
- return $this->storage->getETag($path);
+ return $this->getWrapperStorage()->getETag($path);
}
/**
* @return true
*/
public function test() {
- return $this->storage->test();
+ return $this->getWrapperStorage()->test();
}
/**
* @return bool wrapped storage's isLocal() value
*/
public function isLocal() {
- return $this->storage->isLocal();
+ return $this->getWrapperStorage()->isLocal();
}
/**
* @return bool
*/
public function instanceOfStorage($class) {
- return is_a($this, $class) or $this->storage->instanceOfStorage($class);
+ return is_a($this, $class) or $this->getWrapperStorage()->instanceOfStorage($class);
}
/**
* @return mixed
*/
public function __call($method, $args) {
- return call_user_func_array(array($this->storage, $method), $args);
+ return call_user_func_array(array($this->getWrapperStorage(), $method), $args);
}
/**
* @return array
*/
public function getDirectDownload($path) {
- return $this->storage->getDirectDownload($path);
+ return $this->getWrapperStorage()->getDirectDownload($path);
}
/**
* @return array [ available, last_checked ]
*/
public function getAvailability() {
- return $this->storage->getAvailability();
+ return $this->getWrapperStorage()->getAvailability();
}
/**
* @param bool $isAvailable
*/
public function setAvailability($isAvailable) {
- $this->storage->setAvailability($isAvailable);
+ $this->getWrapperStorage()->setAvailability($isAvailable);
}
/**
* @throws InvalidPathException
*/
public function verifyPath($path, $fileName) {
- $this->storage->verifyPath($path, $fileName);
+ $this->getWrapperStorage()->verifyPath($path, $fileName);
}
/**
return $this->copy($sourceInternalPath, $targetInternalPath);
}
- return $this->storage->copyFromStorage($sourceStorage, $sourceInternalPath, $targetInternalPath);
+ return $this->getWrapperStorage()->copyFromStorage($sourceStorage, $sourceInternalPath, $targetInternalPath);
}
/**
return $this->rename($sourceInternalPath, $targetInternalPath);
}
- return $this->storage->moveFromStorage($sourceStorage, $sourceInternalPath, $targetInternalPath);
+ return $this->getWrapperStorage()->moveFromStorage($sourceStorage, $sourceInternalPath, $targetInternalPath);
}
/**
* @return array
*/
public function getMetaData($path) {
- return $this->storage->getMetaData($path);
+ return $this->getWrapperStorage()->getMetaData($path);
}
/**
* @throws \OCP\Lock\LockedException
*/
public function acquireLock($path, $type, ILockingProvider $provider) {
- if ($this->storage->instanceOfStorage('\OCP\Files\Storage\ILockingStorage')) {
- $this->storage->acquireLock($path, $type, $provider);
+ if ($this->getWrapperStorage()->instanceOfStorage('\OCP\Files\Storage\ILockingStorage')) {
+ $this->getWrapperStorage()->acquireLock($path, $type, $provider);
}
}
* @param \OCP\Lock\ILockingProvider $provider
*/
public function releaseLock($path, $type, ILockingProvider $provider) {
- if ($this->storage->instanceOfStorage('\OCP\Files\Storage\ILockingStorage')) {
- $this->storage->releaseLock($path, $type, $provider);
+ if ($this->getWrapperStorage()->instanceOfStorage('\OCP\Files\Storage\ILockingStorage')) {
+ $this->getWrapperStorage()->releaseLock($path, $type, $provider);
}
}
* @param \OCP\Lock\ILockingProvider $provider
*/
public function changeLock($path, $type, ILockingProvider $provider) {
- if ($this->storage->instanceOfStorage('\OCP\Files\Storage\ILockingStorage')) {
- $this->storage->changeLock($path, $type, $provider);
+ if ($this->getWrapperStorage()->instanceOfStorage('\OCP\Files\Storage\ILockingStorage')) {
+ $this->getWrapperStorage()->changeLock($path, $type, $provider);
}
}
}