diff --git a/lib/public/files.php b/lib/public/files.php index 700bf57453..4975bbb7df 100644 --- a/lib/public/files.php +++ b/lib/public/files.php @@ -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