list_files

List files in directory

Returns a list of files and directories in the specified path. Supports an optional regex pattern for filtering. Returns a FileError value when the directory cannot be read.

Parameters

Returns

List of filenames.

Examples

list_files(".", pattern = "\\.t$")