Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
3e54696f
Commit
3e54696f
authored
9 years ago
by
Robin Appelman
Browse files
Options
Downloads
Patches
Plain Diff
extends phpdoc
parent
3526b352
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/private/files/cache/scanner.php
+4
-3
4 additions, 3 deletions
lib/private/files/cache/scanner.php
with
4 additions
and
3 deletions
lib/private/files/cache/scanner.php
+
4
−
3
View file @
3e54696f
...
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment