also add hasUpdated to oc_filesystem and oc_filesystemview
This commit is contained in:
parent
449760f665
commit
a9a424a519
|
@ -474,6 +474,15 @@ class OC_Filesystem{
|
||||||
static public function search($query){
|
static public function search($query){
|
||||||
return OC_FileCache::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');
|
require_once('filecache.php');
|
||||||
|
|
|
@ -444,4 +444,13 @@ class OC_FilesystemView {
|
||||||
}
|
}
|
||||||
return null;
|
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 New Issue