DirectoryList

List the contents of a directory.

Returns either an array, or a query.

Method Signature

DirectoryList(path=[string], recurse=[boolean], listInfo=[string], filter=[string], sort=[string], type=[string])

Arguments

ArgumentTypeRequiredDescriptionDefault

path

string

true

The path to the directory to list.

recurse

boolean

true

Whether to recurse into subdirectories.

false

listInfo

string

false

The type of information to return. Valid values are "path", "name", and "query".

path

filter

string

false

A filter to apply to the listing.

sort

string

false

name

type

string

false

The type of items to list. Valid values are "all", "file", and "dir".

all

Examples

Last updated

Logo

Copyright & Register Trademark by Ortus Solutions, Corp & Ortus Software, LLC