Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/files
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-07-29 20:27:19 +0400
committerThomas Müller <thomas.mueller@tmit.eu>2013-08-29 00:56:29 +0400
commitda504295fe7d6f360cbf6156f4c2edf5b3b521a8 (patch)
tree2b5cf3e97126825bfab2f3efc1b026490f73d415 /lib/files
parentfa7189c40d014e865cb22e95ae51fca73c6fa2f9 (diff)
better variable naming
Diffstat (limited to 'lib/files')
-rw-r--r--lib/files/cache/scanner.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/files/cache/scanner.php b/lib/files/cache/scanner.php
index 032e2c892ea..fdaad764a12 100644
--- a/lib/files/cache/scanner.php
+++ b/lib/files/cache/scanner.php
@@ -74,10 +74,10 @@ class Scanner extends BasicEmitter {
*
* @param string $file
* @param int $reuseExisting
- * @param bool $parentExists
+ * @param bool $parentExistsInCache
* @return array with metadata of the scanned file
*/
- public function scanFile($file, $reuseExisting = 0, $parentExists = false) {
+ public function scanFile($file, $reuseExisting = 0, $parentExistsInCache = false) {
if (!self::isPartialFile($file)
and !Filesystem::isFileBlacklisted($file)
) {
@@ -85,7 +85,7 @@ class Scanner extends BasicEmitter {
\OC_Hook::emit('\OC\Files\Cache\Scanner', 'scan_file', array('path' => $file, 'storage' => $this->storageId));
$data = $this->getData($file);
if ($data) {
- if ($file and !$parentExists) {
+ if ($file and !$parentExistsInCache) {
$parent = dirname($file);
if ($parent === '.' or $parent === '/') {
$parent = '';