From: Frank Karlitschek Date: Tue, 19 Mar 2013 13:27:02 +0000 (+0100) Subject: add a searchbymime to the public api. Please all remember that access to internal... X-Git-Tag: v6.0.0alpha2~1035^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3cb016d478f16e044179286ae68e44c8cb9557f1;p=nextcloud-server.git add a searchbymime to the public api. Please all remember that access to internal oc classes will be disabled for all app for ownCloud 6. So please port yur stuff to the public api :-) --- diff --git a/lib/public/files.php b/lib/public/files.php index 700bf574537..4975bbb7dfa 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