Browse Source

Pathlib

pull/27/head
Jure Šorn 5 years ago
parent
commit
f6c7a31d75
1 changed files with 7 additions and 7 deletions
  1. 14
      README.md

14
README.md

@ -978,16 +978,16 @@ pwd = Path()
``` ```
```python ```python
<str> = str(<Path>) # Returns path as string.
<tup.> = <Path>.parts # Returns all components as strings.
<Path> = <Path>.resolve() # Makes path absolute.
<str> = str(<Path>) # Returns path as string.
<tup.> = <Path>.parts # Returns all components as strings.
<Path> = <Path>.resolve() # Makes path absolute.
``` ```
```python ```python
<str> = <Path>.name # Final component.
<str> = <Path>.stem # Final component without extension.
<str> = <Path>.suffix # Final component's extension.
<Path> = <Path>.parent # Path without final component.
<str> = <Path>.name # Final component.
<str> = <Path>.stem # Final component without extension.
<str> = <Path>.suffix # Final component's extension.
<Path> = <Path>.parent # Path without final component.
``` ```

Loading…
Cancel
Save