Algosim documentation: FileList

FileList

Returns a list of all file names in a specific directory.

Syntax

Description

If dir is a fully-qualified path to a directory in the file system, then FileList(dir) returns a list of all fully-qualified file names in dir. FileList(dir, pat) returns only files matching the pattern pat which may contain the standard file system wildcards * and ?.

Examples

d ≔ "C:\WINDOWS\System32"; 1.⋅#FileList(d, "*.dll") / #FileList(d)
0.72865497076
FileList(d, "*.scr") @ FileName
Bubbles.scr
Mystify.scr
PhotoScreensaver.scr
Ribbons.scr
scrnsave.scr
ssText3d.scr

See also