Merge pull request #2799 from owncloud/add-mimetype-filter-to-getdirectorycontent
Add mimetype filter to getDirectoryContent function
This commit is contained in:
commit
8cd4cadb22
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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 = '') {
|
||||||
|
|
Loading…
Reference in New Issue