Commit a07a8794 authored by Bart Visscher's avatar Bart Visscher
Browse files

Add mimetype filter to getDirectoryContent function

parent ccde0212
......@@ -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);
}
/**
......
......@@ -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 = '') {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment