diff --git a/lib/filesystem.php b/lib/filesystem.php index 28bd7d5290099cf81afdbc2399872cc1c02c4746..89de533d725f78b854b6b5faea9c0297e6dae51d 100644 --- a/lib/filesystem.php +++ b/lib/filesystem.php @@ -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'); diff --git a/lib/filesystemview.php b/lib/filesystemview.php index 58657671b9875258ff88347a49a6321a675f42f9..813a87cd74e5eb2815359826744728a6117fa923 100644 --- a/lib/filesystemview.php +++ b/lib/filesystemview.php @@ -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); + } }