mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
Merge pull request #2445 from owncloud/extend_public_api
add a searchbymime to the public api. Please all remember that access to...
This commit is contained in:
commit
a0ae2ab11a
1 changed files with 10 additions and 0 deletions
|
|
@ -55,6 +55,16 @@ class Files {
|
|||
return(\OC_Helper::getMimeType( $path ));
|
||||
}
|
||||
|
||||
/**
|
||||
* search for files by mimetype
|
||||
*
|
||||
* @param string $query
|
||||
* @return array
|
||||
*/
|
||||
public function searchByMime($mimetype) {
|
||||
return(\OC\Files\Filesystem::searchByMime( $mimetype ));
|
||||
}
|
||||
|
||||
/**
|
||||
* copy the contents of one stream to another
|
||||
* @param resource source
|
||||
|
|
|
|||
Loading…
Reference in a new issue