aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-06-18 14:30:25 +0200
committerRobin Appelman <icewind@owncloud.com>2015-06-18 14:30:25 +0200
commit3e54696f7f44f99c4203d75a13834ac4f33c938b (patch)
tree6bdf01ac758d50137c97eb19e55dc871a3c6b214 /lib
parent3526b352dc30fa3c9c0d7a17702415983c135576 (diff)
downloadnextcloud-server-3e54696f7f44f99c4203d75a13834ac4f33c938b.tar.gz
nextcloud-server-3e54696f7f44f99c4203d75a13834ac4f33c938b.zip
extends phpdoc
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/cache/scanner.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/private/files/cache/scanner.php b/lib/private/files/cache/scanner.php
index 2cadaa1cdc0..12aa05277a1 100644
--- a/lib/private/files/cache/scanner.php
+++ b/lib/private/files/cache/scanner.php
@@ -124,9 +124,10 @@ class Scanner extends BasicEmitter {
* @param int $reuseExisting
* @param int $parentId
* @param array | null $cacheData existing data in the cache for the file to be scanned
- * @param bool $lock
+ * @param bool $lock set to false to disable getting an additional read lock during scanning
* @return array an array of metadata of the scanned file
* @throws \OC\ServerNotAvailableException
+ * @throws \OCP\Lock\LockedException
*/
public function scanFile($file, $reuseExisting = 0, $parentId = -1, $cacheData = null, $lock = true) {
if (!self::isPartialFile($file)
@@ -251,7 +252,7 @@ class Scanner extends BasicEmitter {
* @param string $path
* @param bool $recursive
* @param int $reuse
- * @param bool $lock
+ * @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
*/
public function scan($path, $recursive = self::SCAN_RECURSIVE, $reuse = -1, $lock = true) {
@@ -314,7 +315,7 @@ class Scanner extends BasicEmitter {
* @param bool $recursive
* @param int $reuse
* @param array $folderData existing cache data for the folder to be scanned
- * @param bool $lock
+ * @param bool $lock set to false to disable getting an additional read lock during scanning
* @return int the size of the scanned folder or -1 if the size is unknown at this stage
*/
protected function scanChildren($path, $recursive = self::SCAN_RECURSIVE, $reuse = -1, $folderData = null, $lock = true) {