Browse Source

Pathlib

pull/28/head
Jure Šorn 5 years ago
parent
commit
03ce3f1323
1 changed files with 4 additions and 1 deletions
  1. 5
      README.md

5
README.md

@ -1135,11 +1135,14 @@ cwd = Path()
<bool> = <Path>.is_file() <bool> = <Path>.is_file()
<bool> = <Path>.is_dir() <bool> = <Path>.is_dir()
<iter> = <Path>.iterdir() <iter> = <Path>.iterdir()
```
```python
<iter> = <Path>.glob('<pattern>') <iter> = <Path>.glob('<pattern>')
``` ```
```python ```python
<str> = str(<Path>) # Returns path as string.
<str> = str(<Path>) # Returns path as a string.
<tup.> = <Path>.parts # Returns all components as strings. <tup.> = <Path>.parts # Returns all components as strings.
<Path> = <Path>.resolve() # Returns absolute path without symlinks. <Path> = <Path>.resolve() # Returns absolute path without symlinks.
``` ```

Loading…
Cancel
Save