From b27180a613a389302f381a7fc63610e8e0b5b1f7 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 00000000000..0e29edbba35 --- /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"; +} -- 2.39.5