List directory🔗

Lists files in a directory.

Inputs🔗

  • path: The path to the directory to list.

  • glob: A glob to match file names against. For example, “*.png”. If left empty, every file will match.

  • regex: A regular expression to match file names against. For example, “.(jpg|png)$”. If left empty, every file will match.

  • files: Enables or disables listing of ordinary files.

  • directories: Enables or disables listing of directories. “.” and “..” will never be included.

  • symbolicLinks: Enables or disables listing of symbolic links.

  • resolveLinks: If enabled, symbolic links are resolved. The link name will be included in the output only if it points to a valid file or directory and the resolved file/directory matches the rest of the selection criteria. Note that pattern is applied to the name of the link, not its target. If resolveLinks is true, the output file names will contain an absolute path irrespective of the value of includePath.

  • readable: If enabled, the selected files must be readable.

  • writable: If enabled, the selected files must be writable.

  • executable: If enabled, the selected files must be executable.

  • includePath: If enabled, path will be prepended to output file names.

Outputs🔗

  • fileNames: An array of file names matching the criteria.