mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
also add hasUpdated to oc_filesystem and oc_filesystemview
This commit is contained in:
parent
449760f665
commit
a9a424a519
2 changed files with 18 additions and 0 deletions
|
|
@ -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');
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue