From 60d12f787a0617cf2fc36a464cb39bb8a755ad74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sun, 21 Jul 2019 02:30:53 +0200 Subject: [PATCH] Pathlib --- README.md | 4 ++-- index.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c692715..67ed146 100644 --- a/README.md +++ b/README.md @@ -1571,8 +1571,8 @@ cwd = Path() ``` ```python - = .iterdir() # Iterator of filenames located at path. - = .glob('') # Filenames matching the wildcard pattern. + = .iterdir() # Returns dir contents as Path objects. + = .glob('') # Paths matching the wildcard pattern. ``` ```python diff --git a/index.html b/index.html index 3a5488e..5851b17 100644 --- a/index.html +++ b/index.html @@ -1427,8 +1427,8 @@ value = args.<name> <bool> = <Path>.is_file() <bool> = <Path>.is_dir() -
<iter> = <Path>.iterdir()          # Iterator of filenames located at path.
-<iter> = <Path>.glob('<pattern>')  # Filenames matching the wildcard pattern.
+
<iter> = <Path>.iterdir()          # Returns dir contents as Path objects.
+<iter> = <Path>.glob('<pattern>')  # Paths matching the wildcard pattern.
 
<str>  = str(<Path>)               # Returns path as a string.
 <tup.> = <Path>.parts              # Returns all components as strings.