Skip to content

Commit 2d18c61

Browse files
committed
Pathlib
1 parent 153a248 commit 2d18c61

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -970,21 +970,21 @@ pwd = Path()
970970
```
971971

972972
```python
973-
<iter> = <Path>.iterdir() # Returns all files in a dir.
974-
<iter> = <Path>.glob('<pattern>') # Returns all matches.
975-
<Path> = <Path>.resolve() # Makes path absolute.
976-
<bool> = <Path>.exists()
977-
<bool> = <Path>.is_dir()
978-
<file> = <Path>.open()
973+
<iter> = <Path>.iterdir() # Returns all files in a dir.
974+
<iter> = <Path>.glob('<pattern>') # Returns all matches.
975+
<Path> = <Path>.resolve() # Makes path absolute.
976+
<bool> = <Path>.exists()
977+
<bool> = <Path>.is_dir()
978+
<file> = <Path>.open()
979979
```
980980

981981
```python
982-
<str> = str(<Path>) # Returns path as string.
983-
<str> = <Path>.name # Final component.
984-
<str> = <Path>.stem # Final component without extension.
985-
<str> = <Path>.suffix # Final component's extension.
986-
<Path> = <Path>.parent # Path without final component.
987-
<tuple> = <Path>.parts # All components as strings.
982+
<str> = str(<Path>) # Returns path as string.
983+
<str> = <Path>.name # Final component.
984+
<str> = <Path>.stem # Final component without extension.
985+
<str> = <Path>.suffix # Final component's extension.
986+
<Path> = <Path>.parent # Path without final component.
987+
<tuple> = <Path>.parts # All components as strings.
988988
```
989989

990990

0 commit comments

Comments
 (0)