find_files_by_name_with_regex

Retrieves an array of file paths from the codebase that match a given regex pattern.

Arguments

NameTypeDescriptionRequired

path_to_directory

string

The directory to search in.

find_file_name_pattern

string

The regex pattern used to find files.

cached_file_paths

array

A cached array of file paths to speed up the search.

limit

number

Limit the amount of results returned.

excluded_paths

array

A list of paths to exclude from the search.

Returns

TypeDescription

array

An array of file paths that match the regex pattern.

Example

- name: find_files_by_name_with_regex
  arguments:
    path_to_directory: <directory-to-search-in>
    find_file_name_pattern: <regex-pattern-to-find-files>
    cached_file_paths: <optional-cached-array-of-file-paths>
  returns: <array-of-file-paths>

Last updated