From a9a424a51982396943e9c3353c0c36f289dd41ba Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind@owncloud.com>
Date: Fri, 15 Jun 2012 17:42:39 +0200
Subject: [PATCH] also add hasUpdated to oc_filesystem and oc_filesystemview

---
 lib/filesystem.php     | 9 +++++++++
 lib/filesystemview.php | 9 +++++++++
 2 files changed, 18 insertions(+)

diff --git a/lib/filesystem.php b/lib/filesystem.php
index 28bd7d5290..89de533d72 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 58657671b9..813a87cd74 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);
+	}
 }
-- 
GitLab