summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Cache
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2021-02-15 17:52:11 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2021-03-04 21:34:54 +0100
commitb8442935361703ce6cd9e17ec50d64584cd35673 (patch)
tree246d7fcdfdbb3087e8f35f3088062ea9d1f8e1f1 /lib/private/Files/Cache
parentb0fe408d1f08958d1d00c98810675cc8a70df686 (diff)
downloadnextcloud-server-b8442935361703ce6cd9e17ec50d64584cd35673.tar.gz
nextcloud-server-b8442935361703ce6cd9e17ec50d64584cd35673.zip
catch notfound and forbidden exception in smb::getmetadata
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/Cache')
-rw-r--r--lib/private/Files/Cache/Scanner.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/Files/Cache/Scanner.php b/lib/private/Files/Cache/Scanner.php
index 0dbc34fae2f..7bb0341e201 100644
--- a/lib/private/Files/Cache/Scanner.php
+++ b/lib/private/Files/Cache/Scanner.php
@@ -109,7 +109,7 @@ class Scanner extends BasicEmitter implements IScanner {
* *
*
* @param string $path
- * @return array an array of metadata of the file
+ * @return array|null an array of metadata of the file
*/
protected function getData($path) {
$data = $this->storage->getMetaData($path);
@@ -128,7 +128,7 @@ class Scanner extends BasicEmitter implements IScanner {
* @param array|null|false $cacheData existing data in the cache for the file to be scanned
* @param bool $lock set to false to disable getting an additional read lock during scanning
* @param null $data the metadata for the file, as returned by the storage
- * @return array an array of metadata of the scanned file
+ * @return array|null an array of metadata of the scanned file
* @throws \OCP\Lock\LockedException
*/
public function scanFile($file, $reuseExisting = 0, $parentId = -1, $cacheData = null, $lock = true, $data = null) {
@@ -323,7 +323,7 @@ class Scanner extends BasicEmitter implements IScanner {
* @param bool $recursive
* @param int $reuse
* @param bool $lock set to false to disable getting an additional read lock during scanning
- * @return array an array of the meta data of the scanned file or folder
+ * @return array|null an array of the meta data of the scanned file or folder
*/
public function scan($path, $recursive = self::SCAN_RECURSIVE, $reuse = -1, $lock = true) {
if ($reuse === -1) {