From 3cb016d478f16e044179286ae68e44c8cb9557f1 Mon Sep 17 00:00:00 2001 From: Frank Karlitschek Date: Tue, 19 Mar 2013 14:27:02 +0100 Subject: [PATCH] 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 :-) --- lib/public/files.php | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -- 2.39.5