Skip to content
Snippets Groups Projects
Commit a0ae2ab1 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #2445 from owncloud/extend_public_api

add a searchbymime to the public api. Please all remember that access to...
parents aa3973d3 3cb016d4
No related branches found
No related tags found
No related merge requests found
...@@ -55,6 +55,16 @@ class Files { ...@@ -55,6 +55,16 @@ class Files {
return(\OC_Helper::getMimeType( $path )); 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 * copy the contents of one stream to another
* @param resource source * @param resource source
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment