diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2016-04-15 09:02:01 +0200 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2016-04-19 14:04:00 +0200 |
commit | afa37d363fe1bedfe85a4dbd53adb091f3b014b2 (patch) | |
tree | 7724697e16c71aa4c8ac67d1c09d6520459a3fcd /lib/private/files/storage/wrapper | |
parent | 6123badbfa22b79167c4b41f84a38b372f033a2e (diff) | |
download | nextcloud-server-afa37d363fe1bedfe85a4dbd53adb091f3b014b2.tar.gz nextcloud-server-afa37d363fe1bedfe85a4dbd53adb091f3b014b2.zip |
Fix related logic
Diffstat (limited to 'lib/private/files/storage/wrapper')
-rw-r--r-- | lib/private/files/storage/wrapper/jail.php | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/private/files/storage/wrapper/jail.php b/lib/private/files/storage/wrapper/jail.php index e5f5ab90359..6c2a5199f2e 100644 --- a/lib/private/files/storage/wrapper/jail.php +++ b/lib/private/files/storage/wrapper/jail.php @@ -47,7 +47,7 @@ class Jail extends Wrapper { $this->rootPath = $arguments['root']; } - protected function getSourcePath($path) { + public function getSourcePath($path) { if ($path === '') { return $this->rootPath; } else { @@ -417,6 +417,14 @@ class Jail extends Wrapper { /** * @param string $path + * @return array + */ + public function getMetaData($path) { + return $this->storage->getMetaData($this->getSourcePath($path)); + } + + /** + * @param string $path * @param int $type \OCP\Lock\ILockingProvider::LOCK_SHARED or \OCP\Lock\ILockingProvider::LOCK_EXCLUSIVE * @param \OCP\Lock\ILockingProvider $provider * @throws \OCP\Lock\LockedException @@ -442,4 +450,9 @@ class Jail extends Wrapper { public function changeLock($path, $type, ILockingProvider $provider) { $this->storage->changeLock($this->getSourcePath($path), $type, $provider); } + + public function resolvePath($path) { + $path = $this->getSourcePath($path); + return \OC\Files\Filesystem::resolvePath($path); + } } |