summaryrefslogtreecommitdiffstats
path: root/lib/public/files.php
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2013-03-19 14:27:02 +0100
committerFrank Karlitschek <frank@owncloud.org>2013-03-19 14:27:02 +0100
commit3cb016d478f16e044179286ae68e44c8cb9557f1 (patch)
tree3b526ca4062c9d3e8d2837553c34205cec587234 /lib/public/files.php
parente8100dc1a8f8b361d11cc0e82a18ade319092877 (diff)
downloadnextcloud-server-3cb016d478f16e044179286ae68e44c8cb9557f1.tar.gz
nextcloud-server-3cb016d478f16e044179286ae68e44c8cb9557f1.zip
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 :-)
Diffstat (limited to 'lib/public/files.php')
-rw-r--r--lib/public/files.php10
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