diff options
-rw-r--r-- | lib/filesystem.php | 9 | ||||
-rw-r--r-- | lib/filesystemview.php | 9 |
2 files changed, 18 insertions, 0 deletions
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); + } } |