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

Add mimetype filter to getDirectoryContent function
This commit is contained in:
Bernhard Posselt 2013-04-09 02:25:40 -07:00
commit 8cd4cadb22
2 changed files with 4 additions and 2 deletions

View File

@ -621,10 +621,11 @@ class Filesystem {
* get the content of a directory * get the content of a directory
* *
* @param string $directory path under datadirectory * @param string $directory path under datadirectory
* @param string $mimetype_filter limit returned content to this mimetype or mimepart
* @return array * @return array
*/ */
public static function getDirectoryContent($directory) { public static function getDirectoryContent($directory, $mimetype_filter = '') {
return self::$defaultInstance->getDirectoryContent($directory); return self::$defaultInstance->getDirectoryContent($directory, $mimetype_filter);
} }
/** /**

View File

@ -731,6 +731,7 @@ class View {
* get the content of a directory * get the content of a directory
* *
* @param string $directory path under datadirectory * @param string $directory path under datadirectory
* @param string $mimetype_filter limit returned content to this mimetype or mimepart
* @return array * @return array
*/ */
public function getDirectoryContent($directory, $mimetype_filter = '') { public function getDirectoryContent($directory, $mimetype_filter = '') {