# Method Filesystem.Base()->get_dir()

Method get_dir

  ``array`(`string`) get_dir(`void`|`string` `directory`, `void`|`string`|`array` `glob`)`

Description

  Returns an array of all files and directories within a given directory.

Parameter `directory`

  Directory where the search should be made within the filesystem. CWD is assumed if none (or 0) is given.

Parameter `glob`

  Return only files and dirs matching the glob (if given).

See also

  [get_stats]