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 @@ -1622,7 +1622,7 @@ os.mkdir(<path>, mode=0o777) # Creates a directory.
16221622``` python
16231623< str > = < DirEntry> .name # Final component of the path.
16241624< str > = < DirEntry> .path # Path with final component.
1625- < Path> = Path(< DirEntry> ) # Path as Path object.
1625+ < Path> = Path(< DirEntry> ) # Path object.
16261626```
16271627
16281628``` python
Original file line number Diff line number Diff line change @@ -1454,7 +1454,7 @@ <h3 id="filesanddirectoriescommands">Files and Directories Commands</h3>
14541454< h4 id ="direntry "> DirEntry:</ h4 >
14551455< pre > < code class ="python language-python hljs "> <str> = <DirEntry>.name < span class ="hljs-comment "> # Final component of the path.</ span >
14561456<str> = <DirEntry>.path < span class ="hljs-comment "> # Path with final component.</ span >
1457- <Path> = Path(<DirEntry>) < span class ="hljs-comment "> # Path as Path object.</ span >
1457+ <Path> = Path(<DirEntry>) < span class ="hljs-comment "> # Path object.</ span >
14581458</ code > </ pre >
14591459< pre > < code class ="python language-python hljs "> <bool> = <DirEntry>.is_file()
14601460<bool> = <DirEntry>.is_dir()
You can’t perform that action at this time.
0 commit comments