diff options
author | Robin Appelman <robin@icewind.nl> | 2021-02-15 19:52:11 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2021-03-04 23:34:54 +0300 |
commit | b8442935361703ce6cd9e17ec50d64584cd35673 (patch) | |
tree | 246d7fcdfdbb3087e8f35f3088062ea9d1f8e1f1 /lib/private/Files/Storage | |
parent | b0fe408d1f08958d1d00c98810675cc8a70df686 (diff) |
catch notfound and forbidden exception in smb::getmetadata
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/Storage')
-rw-r--r-- | lib/private/Files/Storage/Storage.php | 2 | ||||
-rw-r--r-- | lib/private/Files/Storage/Wrapper/Encoding.php | 4 | ||||
-rw-r--r-- | lib/private/Files/Storage/Wrapper/Encryption.php | 4 | ||||
-rw-r--r-- | lib/private/Files/Storage/Wrapper/Jail.php | 4 | ||||
-rw-r--r-- | lib/private/Files/Storage/Wrapper/Wrapper.php | 4 |
5 files changed, 1 insertions, 17 deletions
diff --git a/lib/private/Files/Storage/Storage.php b/lib/private/Files/Storage/Storage.php index 56d997ab974..73793aa31fb 100644 --- a/lib/private/Files/Storage/Storage.php +++ b/lib/private/Files/Storage/Storage.php @@ -93,7 +93,7 @@ interface Storage extends \OCP\Files\Storage { /** * @param string $path - * @return array + * @return array|null */ public function getMetaData($path); diff --git a/lib/private/Files/Storage/Wrapper/Encoding.php b/lib/private/Files/Storage/Wrapper/Encoding.php index c0587cd0263..e2b486546af 100644 --- a/lib/private/Files/Storage/Wrapper/Encoding.php +++ b/lib/private/Files/Storage/Wrapper/Encoding.php @@ -531,10 +531,6 @@ class Encoding extends Wrapper { return $result; } - /** - * @param string $path - * @return array - */ public function getMetaData($path) { return $this->storage->getMetaData($this->findPathToUse($path)); } diff --git a/lib/private/Files/Storage/Wrapper/Encryption.php b/lib/private/Files/Storage/Wrapper/Encryption.php index ef44be5cefb..a7a915afad9 100644 --- a/lib/private/Files/Storage/Wrapper/Encryption.php +++ b/lib/private/Files/Storage/Wrapper/Encryption.php @@ -192,10 +192,6 @@ class Encryption extends Wrapper { return $data; } - /** - * @param string $path - * @return array - */ public function getMetaData($path) { $data = $this->storage->getMetaData($path); if (is_null($data)) { diff --git a/lib/private/Files/Storage/Wrapper/Jail.php b/lib/private/Files/Storage/Wrapper/Jail.php index dbbe2890df0..b7933708da8 100644 --- a/lib/private/Files/Storage/Wrapper/Jail.php +++ b/lib/private/Files/Storage/Wrapper/Jail.php @@ -441,10 +441,6 @@ class Jail extends Wrapper { return $this->getWrapperStorage()->getETag($this->getUnjailedPath($path)); } - /** - * @param string $path - * @return array - */ public function getMetaData($path) { return $this->getWrapperStorage()->getMetaData($this->getUnjailedPath($path)); } diff --git a/lib/private/Files/Storage/Wrapper/Wrapper.php b/lib/private/Files/Storage/Wrapper/Wrapper.php index ef8f7293ccb..cffe610c6c2 100644 --- a/lib/private/Files/Storage/Wrapper/Wrapper.php +++ b/lib/private/Files/Storage/Wrapper/Wrapper.php @@ -577,10 +577,6 @@ class Wrapper implements \OC\Files\Storage\Storage, ILockingStorage, IWriteStrea return $this->getWrapperStorage()->moveFromStorage($sourceStorage, $sourceInternalPath, $targetInternalPath); } - /** - * @param string $path - * @return array - */ public function getMetaData($path) { return $this->getWrapperStorage()->getMetaData($path); } |