Skip to content
Snippets Groups Projects
Commit 8cd4cadb authored by Bernhard Posselt's avatar Bernhard Posselt
Browse files

Merge pull request #2799 from owncloud/add-mimetype-filter-to-getdirectorycontent

Add mimetype filter to getDirectoryContent function
parents 2d489a94 a07a8794
No related merge requests found
......@@ -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 = '') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment