From 4fa9e46d2b92c03e81c0ffeaebfd28d400bacf0c Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 9 Apr 2014 16:42:10 +0200 Subject: Emit a new hook, when a file is being updated only The write-hook also is triggered for created files Fix #8131 --- lib/private/files/filesystem.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'lib/private/files/filesystem.php') 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 @@ -118,6 +118,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 * -- cgit v1.2.3