]> source.dussan.org Git - nextcloud-server.git/commitdiff
also add hasUpdated to oc_filesystem and oc_filesystemview
authorRobin Appelman <icewind@owncloud.com>
Fri, 15 Jun 2012 15:42:39 +0000 (17:42 +0200)
committerRobin Appelman <icewind@owncloud.com>
Fri, 15 Jun 2012 15:42:39 +0000 (17:42 +0200)
lib/filesystem.php
lib/filesystemview.php

index 28bd7d5290099cf81afdbc2399872cc1c02c4746..89de533d725f78b854b6b5faea9c0297e6dae51d 100644 (file)
@@ -474,6 +474,15 @@ class OC_Filesystem{
        static public function search($query){
                return OC_FileCache::search($query);
        }
+
+       /**
+        * check if a file or folder has been updated since $time
+        * @param int $time
+        * @return bool
+        */
+       static public function hasUpdated($path,$time){
+               return self::$defaultInstance->hasUpdated($path);
+       }
 }
 
 require_once('filecache.php');
index 58657671b9875258ff88347a49a6321a675f42f9..813a87cd74e5eb2815359826744728a6117fa923 100644 (file)
@@ -444,4 +444,13 @@ class OC_FilesystemView {
                }
                return null;
        }
+
+       /**
+        * check if a file or folder has been updated since $time
+        * @param int $time
+        * @return bool
+        */
+       public function hasUpdated($path,$time){
+               return $this->basicOperation('hasUpdated',$path,array(),$time);
+       }
 }