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
16211621
16221622``` python
16231623< 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.
16251625< str > = < DirEntry> .name # Returns final component as a string.
16261626< file > = open (< DirEntry> ) # Opens the file and returns file object.
16271627```
Original file line number Diff line number Diff line change 15051505
15061506
15071507< 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 >
15091509<str> = <DirEntry>.name < span class ="hljs-comment "> # Returns final component as a string.</ span >
15101510<file> = open(<DirEntry>) < span class ="hljs-comment "> # Opens the file and returns file object.</ span >
15111511</ code > </ pre >
You can’t perform that action at this time.
0 commit comments