File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1621,7 +1621,7 @@ from os import scandir
1621
1621
1622
1622
``` python
1623
1623
< iter > = scandir(path = ' .' ) # Returns DirEntry objects located at path.
1624
- < str > = < DirEntry> .path # Returns path as a string.
1624
+ < str > = < DirEntry> .path # Returns whole path as a string.
1625
1625
< str > = < DirEntry> .name # Returns final component as a string.
1626
1626
< file > = open (< DirEntry> ) # Opens the file and returns file object.
1627
1627
```
Original file line number Diff line number Diff line change 1505
1505
1506
1506
1507
1507
< pre > < code class ="python language-python hljs "> <iter> = scandir(path=< span class ="hljs-string "> '.'</ span > ) < span class ="hljs-comment "> # Returns DirEntry objects located at path.</ span >
1508
- <str> = <DirEntry>.path < span class ="hljs-comment "> # Returns path as a string.</ span >
1508
+ <str> = <DirEntry>.path < span class ="hljs-comment "> # Returns whole path as a string.</ span >
1509
1509
<str> = <DirEntry>.name < span class ="hljs-comment "> # Returns final component as a string.</ span >
1510
1510
<file> = open(<DirEntry>) < span class ="hljs-comment "> # Opens the file and returns file object.</ span >
1511
1511
</ code > </ pre >
You can’t perform that action at this time.
0 commit comments