@@ -1201,9 +1201,9 @@ Below is a table mapping various :mod:`os` functions to their corresponding
1201
1201
:func: `os.path.relpath ` and :meth: `PurePath.relative_to `.
1202
1202
1203
1203
==================================== ==============================
1204
- os and os.path pathlib
1204
+ :mod: ` os ` and :mod: ` os.path ` :mod: ` pathlib `
1205
1205
==================================== ==============================
1206
- :func: `os.path.abspath ` :meth: `Path.resolve `
1206
+ :func: `os.path.abspath ` :meth: `Path.resolve ` [ # ]_
1207
1207
:func: `os.chmod ` :meth: `Path.chmod `
1208
1208
:func: `os.mkdir ` :meth: `Path.mkdir `
1209
1209
:func: `os.makedirs ` :meth: `Path.mkdir `
@@ -1222,6 +1222,7 @@ os and os.path pathlib
1222
1222
:func: `os.link ` :meth: `Path.link_to `
1223
1223
:func: `os.symlink ` :meth: `Path.symlink_to `
1224
1224
:func: `os.readlink ` :meth: `Path.readlink `
1225
+ :func: `os.path.relpath ` :meth: `Path.relative_to ` [# ]_
1225
1226
:func: `os.stat ` :meth: `Path.stat `,
1226
1227
:meth: `Path.owner `,
1227
1228
:meth: `Path.group `
@@ -1232,3 +1233,8 @@ os and os.path pathlib
1232
1233
:func: `os.path.samefile ` :meth: `Path.samefile `
1233
1234
:func: `os.path.splitext ` :data: `PurePath.suffix `
1234
1235
==================================== ==============================
1236
+
1237
+ .. rubric :: Footnotes
1238
+
1239
+ .. [# ] :func: `os.path.abspath ` does not resolve symbolic links while :meth: `Path.resolve ` does.
1240
+ .. [# ] :meth: `Path.relative_to ` requires ``self `` to be the subpath of the argument, but :func: `os.path.relpath ` does not.
0 commit comments