File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1622,13 +1622,13 @@ os.mkdir(<path>, mode=0o777) # Creates a directory.
1622
1622
``` python
1623
1623
< str > = < DirEntry> .name # Final component of the path.
1624
1624
< str > = < DirEntry> .path # Path with final component.
1625
+ < Path> = Path(< DirEntry> ) # Path as Path object.
1625
1626
```
1626
1627
1627
1628
``` python
1628
1629
< bool > = < DirEntry> .is_file()
1629
1630
< bool > = < DirEntry> .is_dir()
1630
1631
< bool > = < DirEntry> .is_symlink()
1631
- < Path> = Path(< DirEntry> )
1632
1632
```
1633
1633
1634
1634
### Shell Commands
Original file line number Diff line number Diff line change @@ -1454,11 +1454,11 @@ <h3 id="filesanddirectoriescommands">Files and Directories Commands</h3>
1454
1454
< h4 id ="direntry "> DirEntry:</ h4 >
1455
1455
< pre > < code class ="python language-python hljs "> <str> = <DirEntry>.name < span class ="hljs-comment "> # Final component of the path.</ span >
1456
1456
<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
1458
</ code > </ pre >
1458
1459
< pre > < code class ="python language-python hljs "> <bool> = <DirEntry>.is_file()
1459
1460
<bool> = <DirEntry>.is_dir()
1460
1461
<bool> = <DirEntry>.is_symlink()
1461
- <Path> = Path(<DirEntry>)
1462
1462
</ code > </ pre >
1463
1463
< h3 id ="shellcommands "> Shell Commands</ h3 >
1464
1464
< pre > < code class ="python language-python hljs "> < span class ="hljs-keyword "> import</ span > os
You can’t perform that action at this time.
0 commit comments