dir

Aliases: 
  • ls
  •  
  • ll
  •  
  • directory
  •  
    Parameters:
    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

    Command Usage

    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,*.cfm
    File globbing patterns can be used to exclude results. Can also be a list
    dir paths=modules excludePaths=**.md --recurse
    Use the "recurse" parameter to show all nested files and folders.
    dir samples/ --recurse
    Ordering results is in format of an ORDER BY SQL clause. Invalid sorts are ignored.
    dir samples "directory asc, name desc"