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"; }