Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
09ac2df1
Commit
09ac2df1
authored
10 years ago
by
Joas Schilling
Browse files
Options
Downloads
Patches
Plain Diff
Update scanFile() and scanChildren() to the new signature of the parent class
parent
b669bf26
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/objectstore/noopscanner.php
+7
-6
7 additions, 6 deletions
lib/private/files/objectstore/noopscanner.php
with
7 additions
and
6 deletions
lib/private/files/objectstore/noopscanner.php
+
7
−
6
View file @
09ac2df1
...
...
@@ -33,10 +33,11 @@ class NoopScanner extends Scanner {
*
* @param string $file
* @param int $reuseExisting
* @param bool $parentExistsInCache
* @return array with metadata of the scanned file
* @param int $parentId
* @param array|null $cacheData existing data in the cache for the file to be scanned
* @return array an array of metadata of the scanned file
*/
public
function
scanFile
(
$file
,
$reuseExisting
=
0
,
$parent
ExistsInCache
=
false
)
{
public
function
scanFile
(
$file
,
$reuseExisting
=
0
,
$parent
Id
=
-
1
,
$cacheData
=
null
)
{
return
array
();
}
...
...
@@ -58,11 +59,11 @@ class NoopScanner extends Scanner {
* @param string $path
* @param bool $recursive
* @param int $reuse
* @param array $folderData existing cache data for the folder to be scanned
* @return int the size of the scanned folder or -1 if the size is unknown at this stage
*/
public
function
scanChildren
(
$path
,
$recursive
=
Storage
::
SCAN_RECURSIVE
,
$reuse
=
-
1
)
{
$size
=
0
;
return
$size
;
protected
function
scanChildren
(
$path
,
$recursive
=
self
::
SCAN_RECURSIVE
,
$reuse
=
-
1
,
$folderData
=
null
)
{
return
0
;
}
/**
...
...
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