File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -970,21 +970,21 @@ pwd = Path()
970
970
```
971
971
972
972
``` python
973
- < iter > = < Path> .iterdir() # Returns all files in a dir.
974
- < iter > = < Path> .glob(' <pattern>' ) # Returns all matches.
975
- < Path> = < Path> .resolve() # Makes path absolute.
976
- < bool > = < Path> .exists()
977
- < bool > = < Path> .is_dir()
978
- < file > = < Path> .open()
973
+ < iter > = < Path> .iterdir() # Returns all files in a dir.
974
+ < iter > = < Path> .glob(' <pattern>' ) # Returns all matches.
975
+ < Path> = < Path> .resolve() # Makes path absolute.
976
+ < bool > = < Path> .exists()
977
+ < bool > = < Path> .is_dir()
978
+ < file > = < Path> .open()
979
979
```
980
980
981
981
``` python
982
- < str > = str (< Path> ) # Returns path as string.
983
- < str > = < Path> .name # Final component.
984
- < str > = < Path> .stem # Final component without extension.
985
- < str > = < Path> .suffix # Final component's extension.
986
- < Path> = < Path> .parent # Path without final component.
987
- < tuple > = < Path> .parts # All components as strings.
982
+ < str > = str (< Path> ) # Returns path as string.
983
+ < str > = < Path> .name # Final component.
984
+ < str > = < Path> .stem # Final component without extension.
985
+ < str > = < Path> .suffix # Final component's extension.
986
+ < Path> = < Path> .parent # Path without final component.
987
+ < tuple > = < Path> .parts # All components as strings.
988
988
```
989
989
990
990
You can’t perform that action at this time.
0 commit comments