@@ -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 |