diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-04-08 22:40:03 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-04-08 22:40:03 +0200 |
commit | a07a8794b89e865645d6e7ddd42922262d6995f5 (patch) | |
tree | 965902ed5e90d088f782efd0a89e7642b32b7da4 /lib/files | |
parent | ccde0212b193a71a258f244424fa2293f08831fb (diff) | |
download | nextcloud-server-a07a8794b89e865645d6e7ddd42922262d6995f5.tar.gz nextcloud-server-a07a8794b89e865645d6e7ddd42922262d6995f5.zip |
Add mimetype filter to getDirectoryContent function
Diffstat (limited to 'lib/files')
-rw-r--r-- | lib/files/filesystem.php | 5 | ||||
-rw-r--r-- | lib/files/view.php | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/files/filesystem.php b/lib/files/filesystem.php index 1580dfaf637..6f56de9f265 100644 --- a/lib/files/filesystem.php +++ b/lib/files/filesystem.php @@ -621,10 +621,11 @@ class Filesystem { * get the content of a directory * * @param string $directory path under datadirectory + * @param string $mimetype_filter limit returned content to this mimetype or mimepart * @return array */ - public static function getDirectoryContent($directory) { - return self::$defaultInstance->getDirectoryContent($directory); + public static function getDirectoryContent($directory, $mimetype_filter = '') { + return self::$defaultInstance->getDirectoryContent($directory, $mimetype_filter); } /** diff --git a/lib/files/view.php b/lib/files/view.php index e811fb093cc..f607bb59aac 100644 --- a/lib/files/view.php +++ b/lib/files/view.php @@ -731,6 +731,7 @@ class View { * get the content of a directory * * @param string $directory path under datadirectory + * @param string $mimetype_filter limit returned content to this mimetype or mimepart * @return array */ public function getDirectoryContent($directory, $mimetype_filter = '') { |