From 2d18c617d7b6702fd303bb14c025322a7deb4900 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sun, 10 Feb 2019 14:26:53 +0100 Subject: [PATCH] Pathlib --- README.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 0fba54b..4f149f5 100644 --- a/README.md +++ b/README.md @@ -970,21 +970,21 @@ pwd = Path() ``` ```python - = .iterdir() # Returns all files in a dir. - = .glob('') # Returns all matches. - = .resolve() # Makes path absolute. - = .exists() - = .is_dir() - = .open() + = .iterdir() # Returns all files in a dir. + = .glob('') # Returns all matches. + = .resolve() # Makes path absolute. + = .exists() + = .is_dir() + = .open() ``` ```python - = str() # Returns path as string. - = .name # Final component. - = .stem # Final component without extension. - = .suffix # Final component's extension. - = .parent # Path without final component. - = .parts # All components as strings. + = str() # Returns path as string. + = .name # Final component. + = .stem # Final component without extension. + = .suffix # Final component's extension. + = .parent # Path without final component. + = .parts # All components as strings. ```