File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -977,18 +977,20 @@ pwd = Path()
977
977
```
978
978
979
979
``` python
980
- < iter > = < Path> .glob(' <pattern>' ) # Returns all matches.
981
- < file > = < Path> .open() # Opens file.
982
- < Path> = < Path> .resolve() # Makes path absolute.
980
+ < iter > = < Path> .glob(' <pattern>' ) # Returns all matches.
983
981
```
984
982
985
983
``` python
984
+ < Path> = < Path> .resolve() # Makes path absolute.
986
985
< str > = str (< Path> ) # Returns path as string.
986
+ < tup.> = < Path> .parts # Returns all components as strings.
987
+ ```
988
+
989
+ ``` python
987
990
< str > = < Path> .name # Final component.
988
991
< str > = < Path> .stem # Final component without extension.
989
992
< str > = < Path> .suffix # Final component's extension.
990
993
< Path> = < Path> .parent # Path without final component.
991
- < tup.> = < Path> .parts # All components as strings.
992
994
```
993
995
994
996
You can’t perform that action at this time.
0 commit comments