-
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or requesttime est: 1 hourWe estimate this issue will take 1 hour to completeWe estimate this issue will take 1 hour to complete
Description
What?
(See issue title)
Why?
This is a common use-case that would be helpful to have.
How?
I recommend writing a function with the following signature:
def directory_replace_text_in_files(directory_path: str, old: str, new: str, *, recursive: bool = False) -> Iterator[str]:
...For the directory path, it would be nice to accept a Pathlib.Path or str. The function should yield file_paths that were updated.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesttime est: 1 hourWe estimate this issue will take 1 hour to completeWe estimate this issue will take 1 hour to complete