media.files

Returns an array of files found in the provided path.

Arguments

path

DataType
string
Required
false
Description
Path to the folder containing the files to be listed.

extensionList

DataType
string
Required
false
Description
A comma seperated list of file extensions to pick up.

prependPath

DataType
boolean
Required
false
Description
If set to TRUE the path will be prepended to file names.

order

DataType
string
Required
false
Description
If set to “mtime” sorts files by modification time or alphabetically otherwise.

excludePattern

DataType
string
Required
false
Description
A comma seperated list of filenames to exclude, no wildcards.