summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/watcher.php
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2013-01-07 10:28:37 -0500
committerMichael Gapczynski <mtgap@owncloud.com>2013-01-07 10:28:37 -0500
commit6801f82d090195573972e15d3cda96b0fde24460 (patch)
treec441d8ca8f284fd0b0f2d16c822f6256274eeffc /apps/files_sharing/lib/watcher.php
parentd0a50fae8317e4b4871027ee4b2940ab5443961f (diff)
parentd0377b1951a156e218ca0200340e2bcfb51ac0c8 (diff)
downloadnextcloud-server-6801f82d090195573972e15d3cda96b0fde24460.tar.gz
nextcloud-server-6801f82d090195573972e15d3cda96b0fde24460.zip
Merge branch 'filesystem' into filesystem-etags
Conflicts: lib/files/cache/cache.php
Diffstat (limited to 'apps/files_sharing/lib/watcher.php')
-rw-r--r--apps/files_sharing/lib/watcher.php51
1 files changed, 51 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/watcher.php b/apps/files_sharing/lib/watcher.php
new file mode 100644
index 00000000000..e67d1ee9086
--- /dev/null
+++ b/apps/files_sharing/lib/watcher.php
@@ -0,0 +1,51 @@
+<?php
+/**
+* ownCloud
+*
+* @author Michael Gapczynski
+* @copyright 2012 Michael Gapczynski mtgap@owncloud.com
+*
+* This library is free software; you can redistribute it and/or
+* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
+* License as published by the Free Software Foundation; either
+* version 3 of the License, or any later version.
+*
+* This library is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
+*
+* You should have received a copy of the GNU Affero General Public
+* License along with this library. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+namespace OC\Files\Cache;
+
+/**
+ * check the storage backends for updates and change the cache accordingly
+ */
+class Shared_Watcher extends Watcher {
+
+ /**
+ * check $path for updates
+ *
+ * @param string $path
+ */
+ public function checkUpdate($path) {
+ if ($path != '') {
+ parent::checkUpdate($path);
+ }
+ }
+
+ /**
+ * remove deleted files in $path from the cache
+ *
+ * @param string $path
+ */
+ public function cleanFolder($path) {
+ if ($path != '') {
+ parent::cleanFolder($path);
+ }
+ }
+
+} \ No newline at end of file