aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/triggerupdate.php
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2014-10-31 17:33:33 +0100
committerJörn Friedrich Dreyer <jfd@butonic.de>2014-12-04 13:44:30 +0100
commit7ef6df04da739af651afdcdbda6ccb095d1a90f7 (patch)
tree4bec1555ed4e340fe43bc4e51194735e123c5c5b /apps/files/triggerupdate.php
parentc5ee95a49e51565a3cd9ecf3769488e19db0ec2b (diff)
downloadnextcloud-server-7ef6df04da739af651afdcdbda6ccb095d1a90f7.tar.gz
nextcloud-server-7ef6df04da739af651afdcdbda6ccb095d1a90f7.zip
remove triggerupdate, ref #11872
Diffstat (limited to 'apps/files/triggerupdate.php')
-rw-r--r--apps/files/triggerupdate.php23
1 files changed, 0 insertions, 23 deletions
diff --git a/apps/files/triggerupdate.php b/apps/files/triggerupdate.php
deleted file mode 100644
index 3f85da9913b..00000000000
--- a/apps/files/triggerupdate.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-
-require_once __DIR__ . '/../../lib/base.php';
-
-if (OC::$CLI) {
- if (count($argv) === 2) {
- $file = $argv[1];
- list(, $user) = explode('/', $file);
- OCP\JSON::checkUserExists($user);
- OC_Util::setupFS($user);
- $view = new \OC\Files\View('');
- /**
- * @var \OC\Files\Storage\Storage $storage
- */
- list($storage, $internalPath) = $view->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";
-}