Skip to content

Commit 4ef2d28

Browse files
committed
Path
1 parent 1365133 commit 4ef2d28

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -678,11 +678,11 @@ def write_to_file(filename, text):
678678

679679
### Path
680680
```python
681-
import os
682-
<bool> = os.path.exists(<path>)
683-
<bool> = os.path.isfile(<path>)
684-
<bool> = os.path.isdir(<path>)
685-
<list> = os.listdir(<path>)
681+
from os import path, listdir
682+
<bool> = path.exists(<path>)
683+
<bool> = path.isfile(<path>)
684+
<bool> = path.isdir(<path>)
685+
<list> = listdir(<path>)
686686
```
687687

688688
```python

0 commit comments

Comments
 (0)