diff -r dab3e7a7a863 Doc/library/pathlib.rst --- a/Doc/library/pathlib.rst Tue Sep 15 20:06:48 2015 +0300 +++ b/Doc/library/pathlib.rst Tue Sep 15 22:38:57 2015 +0300 @@ -1027,3 +1027,65 @@ 'Text file contents' .. versionadded:: 3.5 + +os/os.path correlation +---------------------- ++------------------------+-------------------------+ +| Path.absolute() | os.path.abspath() | ++------------------------+-------------------------+ +| Path.chmod() | os.chmod() | ++------------------------+-------------------------+ +| Path.cwd() | os.getcwd() | ++------------------------+-------------------------+ +| Path.drive | os.path.splitdrive()[0] | ++------------------------+-------------------------+ +| Path.exists() | os.path.exists() | ++------------------------+-------------------------+ +| Path.expanduser() | os.path.expanduser() | ++------------------------+-------------------------+ +| Path.group() | os.stat() | +| | grp.getgrgid()[0] | ++------------------------+-------------------------+ +| Path.home() | os.path.expanduser('~') | ++------------------------+-------------------------+ +| Path.is_absolute() | os.path.isabs() | ++------------------------+-------------------------+ +| Path.is_dir() | os.path.isdir() | ++------------------------+-------------------------+ +| Path.is_file() | os.path.isfile() | ++------------------------+-------------------------+ +| Path.is_symlink() | os.path.islink() | ++------------------------+-------------------------+ +| Path.iterdir() | os.path.walk() | ++------------------------+-------------------------+ +| Path.joinpath() | os.path.join() | ++------------------------+-------------------------+ +| Path.lstat() | os.lstat() | ++------------------------+-------------------------+ +| Path.mkdir() | os.mkdir() | ++------------------------+-------------------------+ +| Path.name | os.basename() | ++------------------------+-------------------------+ +| Path.owner() | os.stat() | +| | grp.getpwuid()[0] | ++------------------------+-------------------------+ +| Path.parent | os.path.dirname() | ++------------------------+-------------------------+ +| Path.relative_to() | os.path.relpath() | ++------------------------+-------------------------+ +| Path.rename() | os.rename() | ++------------------------+-------------------------+ +| Path.rmdir() | os.rmdir() | ++------------------------+-------------------------+ +| Path.stat() | os.path.stat() | ++------------------------+-------------------------+ +| Path.suffix | os.path.splitext()[-1] | ++------------------------+-------------------------+ +| Path.symlink_to() | os.symlink() | ++------------------------+-------------------------+ +| Path.unlink() | os.unlink() | ++------------------------+-------------------------+ +| Path.samefile() | os.path.samefile() | ++------------------------+-------------------------+ +| Path.samestat() | os.path.samestat() | ++------------------------+-------------------------+