diff --git a/README.md b/README.md index ad916cc..998c8b1 100644 --- a/README.md +++ b/README.md @@ -964,18 +964,22 @@ Pathlib ```python from pathlib import Path -pwd = Path() - = Path('' [, '', , ...]) - = / '' / '' +pwd = Path() + = Path('' [, '', , ...]) + = / '' / '' ``` ```python - = .iterdir() # Returns all files in a dir. - = .glob('') # Returns all matches. - = .resolve() # Makes path absolute. = .exists() + = .is_file() = .is_dir() - = .open() + = .iterdir() +``` + +```python + = .glob('') # Returns all matches. + = .resolve() # Makes path absolute. + = .open() # Opens file. ``` ```python