Skip to main content

List files

List the files in a folder that match a pattern, or the files the name rules choose.

Command in the File toolkit · id ooa.file/list · 9 inputs (1 required), 3 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
FolderFileYesFolder path, or name rules (a folder and rules on name, type, size and date) choosing the files.
PatternStringNo*Glob pattern, e.g. *.pdf.
Include subfoldersBooleanNofalseAlso list matching files in sub-folders.
Minimum size (bytes)NumberNoOnly files at least this large.
Maximum size (bytes)NumberNoOnly files at most this large.
Modified within (days)NumberNoOnly files changed in the last this many days.
Older than (days)NumberNoOnly files last changed more than this many days ago.
Sort byStringNonameOrder of the list: by path name, by last change (oldest first) or by size (smallest first).
DescendingBooleanNofalseReverse the order, e.g. newest first with sort_by modified.

Outputs​

OutputTypeWhat it is
filesListFile paths in the chosen order.
countNumberNumber of files found.
firstFileFirst file of the list (e.g. the newest with sort_by modified, descending); empty when none.