From 909d279e55783a5a4499e94a8959fa1745687e42 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Sun, 23 Jun 2013 17:49:38 +0200 Subject: [PATCH] Add a CLI script for manually triggering checking a folder for updates --- apps/files/triggerupdate.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 apps/files/triggerupdate.php diff --git a/apps/files/triggerupdate.php b/apps/files/triggerupdate.php new file mode 100644 index 0000000000..0e29edbba3 --- /dev/null +++ b/apps/files/triggerupdate.php @@ -0,0 +1,22 @@ +resolvePath($file); + $watcher = $storage->getWatcher($internalPath); + $watcher->checkUpdate($internalPath); + } else { + echo "Usage: php triggerupdate.php /path/to/file\n"; + } +} else { + echo "This script can be run from the command line only\n"; +}