summaryrefslogtreecommitdiffstats
path: root/lib/private/files/filesystem.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-04-09 16:42:10 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-04-29 10:34:26 +0200
commit4fa9e46d2b92c03e81c0ffeaebfd28d400bacf0c (patch)
tree2a23231fbe03a40c37fab8717d2556ef880a8aa9 /lib/private/files/filesystem.php
parent158b870589b45f460334c6f9dbe7ec673c6ba138 (diff)
downloadnextcloud-server-4fa9e46d2b92c03e81c0ffeaebfd28d400bacf0c.tar.gz
nextcloud-server-4fa9e46d2b92c03e81c0ffeaebfd28d400bacf0c.zip
Emit a new hook, when a file is being updated only
The write-hook also is triggered for created files Fix #8131
Diffstat (limited to 'lib/private/files/filesystem.php')
-rw-r--r--lib/private/files/filesystem.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/private/files/filesystem.php b/lib/private/files/filesystem.php
index 434ee495870..52df1bec611 100644
--- a/lib/private/files/filesystem.php
+++ b/lib/private/files/filesystem.php
@@ -119,6 +119,22 @@ class Filesystem {
const signal_post_write = 'post_write';
/**
+ * signal emitted before file/dir update
+ *
+ * @param string $path
+ * @param bool $run changing this flag to false in hook handler will cancel event
+ */
+ const signal_update = 'update';
+
+ /**
+ * signal emitted after file/dir update
+ *
+ * @param string $path
+ * @param bool $run changing this flag to false in hook handler will cancel event
+ */
+ const signal_post_update = 'post_update';
+
+ /**
* signal emits when reading file/dir
*
* @param string $path