diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-03-19 07:02:11 -0700 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-03-19 07:02:11 -0700 |
commit | a0ae2ab11a4dbbd1df19b51237029b1fcb942a56 (patch) | |
tree | 80f34f377c39438fcec783484cbef7642956466e | |
parent | aa3973d365a5cefccbf42bcc445d1fce6cad033e (diff) | |
parent | 3cb016d478f16e044179286ae68e44c8cb9557f1 (diff) | |
download | nextcloud-server-a0ae2ab11a4dbbd1df19b51237029b1fcb942a56.tar.gz nextcloud-server-a0ae2ab11a4dbbd1df19b51237029b1fcb942a56.zip |
Merge pull request #2445 from owncloud/extend_public_api
add a searchbymime to the public api. Please all remember that access to...
-rw-r--r-- | lib/public/files.php | 10 |
1 files changed, 10 insertions, 0 deletions
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 @@ -56,6 +56,16 @@ class Files { } /** + * 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 * @param resource target |