summaryrefslogtreecommitdiffstats
path: root/lib/files/cache/updater.php
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-03-25 16:26:17 +0100
committerBjörn Schießle <schiessle@owncloud.com>2013-03-25 16:26:17 +0100
commit011ab3a11cf2f840da8071167ec894e0ed3a76bc (patch)
tree0eda8819e6a58489dbc6266b5e40c3b6b0c6ceb6 /lib/files/cache/updater.php
parent9b84c50f15d8f3d6b445601a2a23b2d34e116565 (diff)
downloadnextcloud-server-011ab3a11cf2f840da8071167ec894e0ed3a76bc.tar.gz
nextcloud-server-011ab3a11cf2f840da8071167ec894e0ed3a76bc.zip
listen to touch hook to update the mtime after sync
Diffstat (limited to 'lib/files/cache/updater.php')
-rw-r--r--lib/files/cache/updater.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/files/cache/updater.php b/lib/files/cache/updater.php
index e760ba71bc6..d9537e591da 100644
--- a/lib/files/cache/updater.php
+++ b/lib/files/cache/updater.php
@@ -115,6 +115,13 @@ class Updater {
/**
* @param array $params
*/
+ static public function touchHook($params) {
+ self::writeUpdate($params['path']);
+ }
+
+ /**
+ * @param array $params
+ */
static public function renameHook($params) {
self::renameUpdate($params['oldpath'], $params['newpath']);
}