From: Robin Appelman Date: Fri, 15 Jun 2012 15:42:39 +0000 (+0200) Subject: also add hasUpdated to oc_filesystem and oc_filesystemview X-Git-Tag: v4.5.0beta1~74^2~420^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a9a424a51982396943e9c3353c0c36f289dd41ba;p=nextcloud-server.git also add hasUpdated to oc_filesystem and oc_filesystemview --- diff --git a/lib/filesystem.php b/lib/filesystem.php index 28bd7d52900..89de533d725 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 58657671b98..813a87cd74e 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); + } }