Name | Type | Required | Default | Hint |
paths | Globber | false | The directory to list the contents of or a list of file Globbing path to filter on | |
sort | string | false | directory, type, name | Sort columns and direction. name, directory, size, type, dateLastModified, attributes, mode |
excludePaths | string | false | A list of file glob patterns to exclude | |
recurse | boolean | false | false | Include nested files and folders |
simple | boolean | false | false | Output only path names and nothing else. |
full | boolean | false | false | Output absolute file path, not just relative to current working directory |
List the files and folders in a directory. Defaults to current working directory
dir samples/File globbing patterns can be used to filter results. Can also be a list
dir **.cfc,*.cfmFile globbing patterns can be used to exclude results. Can also be a list
dir paths=modules excludePaths=**.md --recurseUse the "recurse" parameter to show all nested files and folders.
dir samples/ --recurseOrdering results is in format of an ORDER BY SQL clause. Invalid sorts are ignored.
dir samples "directory asc, name desc"