list_files

List files in directory

Returns a list of files and directories in the specified path. Supports an optional regex pattern for filtering.

Parameters

Returns

List of filenames.

Examples

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