Awee

dir:read

Read a directory with filters

Read a directory with filters

Options

NameTypeDescription
dirstringThe path of the directory to scan
extstringFile extensions to include (e.g. ["go", "md"]); empty means all extensions
skip_extstringFile extensions to exclude
skip_dirstringSubdirectory names to skip during traversal
levelsintDepth of directory traversal: -1 for unlimited, 0 for current dir only, 1 for one level deep, etc.

Outputs

NameTypeDescription
dirstringThe scanned directory path
filesstringList of file paths found
dirsstringList of subdirectory paths found

How is this guide?

On this page