diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-06-15 16:43:24 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-06-15 16:43:24 +0200 |
commit | 449760f665a2416875458cbb3f34387df038b08a (patch) | |
tree | 3ad398644dee204c3b7bdc16c95effcc30d094b1 /lib/filestorage.php | |
parent | 6ca87656befb4ae30bd17547f34e6c3263c83c64 (diff) | |
download | nextcloud-server-449760f665a2416875458cbb3f34387df038b08a.tar.gz nextcloud-server-449760f665a2416875458cbb3f34387df038b08a.zip |
add hasUpdated to oc_filestorage
Diffstat (limited to 'lib/filestorage.php')
-rw-r--r-- | lib/filestorage.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/filestorage.php b/lib/filestorage.php index 1d7e004af3b..71ef4aed00b 100644 --- a/lib/filestorage.php +++ b/lib/filestorage.php @@ -50,4 +50,13 @@ abstract class OC_Filestorage{ abstract public function search($query); abstract public function touch($path, $mtime=null); abstract public function getLocalFile($path);// get a path to a local version of the file, whether the original file is local or remote + /** + * check if a file or folder has been updated since $time + * @param int $time + * @return bool + * + * hasUpdated for folders should return at least true if a file inside the folder is add, removed or renamed. + * returning true for other changes in the folder is optional + */ + abstract public function hasUpdated($path,$time); } |