Open fhightower opened 3 years ago
(See issue title)
This is a common use-case that would be helpful to have.
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.
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:
For the directory path, it would be nice to accept a Pathlib.Path or str. The function should yield file_paths that were updated.