copy_files_with_regex
Copies files from one part of the codebase to another based on regex patterns. This tool retains the original file at its original path.
Arguments
regex_patterns
array
The regex patterns used to find files that should be staged for moving.
destination_directory
string
The directory to copy the files to.
working_directory
string
The working directory to start the search from. Default is the root of the codebase.
exclude_directories
array
Directories to exclude from the search.
overwrite
boolean
If the file already exists in the new location, should it be overwritten? Default is False.
max_depth
number
The maximum depth to search for files in the codebase. Default is 10.
invert_selection
boolean
Invert the search to exclude files that match the patterns.
cached_file_paths
array
Cached array of file paths. If present, will directly copy this array of files into the new codebase.
limit
number
Limit the amount of results returned.
Returns
array
List of relative paths to files that were copied over.
Example
Last updated