also add hasUpdated to oc_filesystem and oc_filesystemview

This commit is contained in:
Robin Appelman 2012-06-15 17:42:39 +02:00
parent 449760f665
commit a9a424a519
2 changed files with 18 additions and 0 deletions

View File

@ -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');

View File

@ -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);
}
}