summaryrefslogtreecommitdiffstats
path: root/lib/private/files/cache/updater.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-08-12 13:59:06 +0200
committerRobin Appelman <icewind@owncloud.com>2014-09-05 11:53:24 +0200
commite29b7e9335ba6f7092ad99b6a4605bef38105d19 (patch)
tree5c10295c52a9c371b6fb13bb789a3f3f41fc9c1b /lib/private/files/cache/updater.php
parent58a154058770c26675a88700ad7f38468283df20 (diff)
downloadnextcloud-server-e29b7e9335ba6f7092ad99b6a4605bef38105d19.tar.gz
nextcloud-server-e29b7e9335ba6f7092ad99b6a4605bef38105d19.zip
Remove explicit propagate calls
Diffstat (limited to 'lib/private/files/cache/updater.php')
-rw-r--r--lib/private/files/cache/updater.php17
1 files changed, 6 insertions, 11 deletions
diff --git a/lib/private/files/cache/updater.php b/lib/private/files/cache/updater.php
index a59dc7c08c6..c303ff24b1f 100644
--- a/lib/private/files/cache/updater.php
+++ b/lib/private/files/cache/updater.php
@@ -1,6 +1,6 @@
<?php
/**
- * Copyright (c) 2012 Robin Appelman <icewind@owncloud.com>
+ * Copyright (c) 2014 Robin Appelman <icewind@owncloud.com>
* This file is licensed under the Affero General Public License version 3 or
* later.
* See the COPYING-README file.
@@ -34,8 +34,9 @@ class Updater {
* Update the cache for $path
*
* @param string $path
+ * @param int $time
*/
- public function update($path) {
+ public function update($path, $time = null) {
/**
* @var \OC\Files\Storage\Storage $storage
* @var string $internalPath
@@ -48,6 +49,7 @@ class Updater {
$data = $scanner->scan($internalPath, Scanner::SCAN_SHALLOW);
$this->correctParentStorageMtime($storage, $internalPath);
$cache->correctFolderSize($internalPath, $data);
+ $this->propagator->propagateChanges($time);
}
}
@@ -72,6 +74,7 @@ class Updater {
$cache->remove($internalPath);
$cache->correctFolderSize($parent);
$this->correctParentStorageMtime($storage, $internalPath);
+ $this->propagator->propagateChanges();
}
}
@@ -115,19 +118,11 @@ class Updater {
$this->remove($source);
$this->update($target);
}
+ $this->propagator->propagateChanges();
}
}
/**
- * propagate the updates to their parent folders
- *
- * @param int $time (optional) the mtime to set for the folders, if not set the current time is used
- */
- public function propagate($time = null) {
- $this->propagator->propagateChanges($time);
- }
-
- /**
* update the storage_mtime of the parent
*
* @param \OC\Files\Storage\Storage $storage