Parses and returns the directories and files that matches
the passed glob pattern in a recursive way (if wanted).
public static globDir ( string $pattern, integer $flags, boolean $recursive = true ) : array | ||
$pattern | string | The glob pattern used to parse the directories |
$flags | integer | The flags passed to the glob function |
$recursive | boolean | Whether or not to parse directories recursively |
return | array | The directories matches the passed glob pattern |
/** * Parses and returns the directories and files that matches * the passed glob pattern in a recursive way (if wanted). * * @param string $pattern The glob pattern used to parse the directories * @param integer $flags The flags passed to the glob function * @param boolean $recursive Whether or not to parse directories recursively * * @return array The directories matches the passed glob pattern * @link http://php.net/glob */ protected static function globDir($pattern, $flags = 0, $recursive = true) { return FileSystem::globDir($pattern, $flags, $recursive); }
/** * Recursively parses and returns the directories that matches the passed * glob pattern. * * @param string $pattern The glob pattern used to parse the directories * @param integer $flags The flags passed to the glob function * * @return array The directories matches the passed glob pattern * @link http://php.net/glob */ public function globDir($pattern, $flags = 0) { return FileSystem::globDir($pattern, $flags); }