{
    "content": [
        {
            "type": "text",
            "text": "# ntpath (pydoc)\n\n**Summary:** ntpath - Common pathname manipulations, WindowsNT/95 version.\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **MODULE REFERENCE** (8 lines)\n- **DESCRIPTION** (3 lines)\n- **FUNCTIONS** (5 lines) — 27 subsections\n  - basename (2 lines)\n  - commonpath (2 lines)\n  - commonprefix (2 lines)\n  - dirname (2 lines)\n  - exists (2 lines)\n  - expanduser (4 lines)\n  - expandvars (4 lines)\n  - getatime (2 lines)\n  - getctime (2 lines)\n  - getmtime (2 lines)\n  - getsize (2 lines)\n  - isabs (2 lines)\n  - isdir (2 lines)\n  - isfile (2 lines)\n  - islink (3 lines)\n  - ismount (3 lines)\n  - join (2 lines)\n  - lexists (2 lines)\n  - normcase (4 lines)\n  - normpath (7 lines)\n  - relpath (2 lines)\n  - samefile (5 lines)\n  - sameopenfile (2 lines)\n  - samestat (2 lines)\n  - split (5 lines)\n  - splitdrive (17 lines)\n  - splitext (5 lines)\n- **DATA** (11 lines)\n- **FILE** (3 lines)\n\n## Full Content\n\n### NAME\n\nntpath - Common pathname manipulations, WindowsNT/95 version.\n\n### MODULE REFERENCE\n\nhttps://docs.python.org/3.10/library/ntpath.html\n\nThe following documentation is automatically generated from the Python\nsource files.  It may be incomplete, incorrect or include features that\nare considered implementation detail and may vary between Python\nimplementations.  When in doubt, consult the module reference at the\nlocation listed above.\n\n### DESCRIPTION\n\nInstead of importing this module directly, import os and refer to this\nmodule as os.path.\n\n### FUNCTIONS\n\nabspath = abspathfallback(path)\nReturn the absolute version of a path as a fallback function in case\n`nt.getfullpathname` is not available or raises OSError. See bpo-31047 for\nmore.\n\n#### basename\n\nReturns the final component of a pathname\n\n#### commonpath\n\nGiven a sequence of path names, returns the longest common sub-path.\n\n#### commonprefix\n\nGiven a list of pathnames, returns the longest common leading component\n\n#### dirname\n\nReturns the directory component of a pathname\n\n#### exists\n\nTest whether a path exists.  Returns False for broken symbolic links\n\n#### expanduser\n\nExpand ~ and ~user constructs.\n\nIf user or $HOME is unknown, do nothing.\n\n#### expandvars\n\nExpand shell variables of the forms $var, ${var} and %var%.\n\nUnknown variables are left unchanged.\n\n#### getatime\n\nReturn the last access time of a file, reported by os.stat().\n\n#### getctime\n\nReturn the metadata change time of a file, reported by os.stat().\n\n#### getmtime\n\nReturn the last modification time of a file, reported by os.stat().\n\n#### getsize\n\nReturn the size of a file, reported by os.stat().\n\n#### isabs\n\nTest whether a path is absolute\n\n#### isdir\n\nReturn true if the pathname refers to an existing directory.\n\n#### isfile\n\nTest whether a path is a regular file\n\n#### islink\n\nTest whether a path is a symbolic link.\nThis will always return false for Windows prior to 6.0.\n\n#### ismount\n\nTest whether a path is a mount point (a drive root, the root of a\nshare, or a mounted volume)\n\n#### join\n\n# Join two (or more) paths.\n\n#### lexists\n\nTest whether a path exists.  Returns True for broken symbolic links\n\n#### normcase\n\nNormalize case of pathname.\n\nMakes all characters lowercase and all slashes into backslashes.\n\n#### normpath\n\nNormalize path, eliminating double slashes, etc.\n\nrealpath = abspathfallback(path)\nReturn the absolute version of a path as a fallback function in case\n`nt.getfullpathname` is not available or raises OSError. See bpo-31047 for\nmore.\n\n#### relpath\n\nReturn a relative version of a path\n\n#### samefile\n\nTest whether two pathnames reference the same actual file or directory\n\nThis is determined by the device number and i-node number and\nraises an exception if an os.stat() call on either pathname fails.\n\n#### sameopenfile\n\nTest whether two open file objects reference the same file\n\n#### samestat\n\nTest whether two stat buffers reference the same file\n\n#### split\n\nSplit a pathname.\n\nReturn tuple (head, tail) where tail is everything after the final slash.\nEither part may be empty.\n\n#### splitdrive\n\nSplit a pathname into drive/UNC sharepoint and relative path specifiers.\nReturns a 2-tuple (driveorunc, path); either part may be empty.\n\nIf you assign\nresult = splitdrive(p)\nIt is always true that:\nresult[0] + result[1] == p\n\nIf the path contained a drive letter, driveorunc will contain everything\nup to and including the colon.  e.g. splitdrive(\"c:/dir\") returns (\"c:\", \"/dir\")\n\nIf the path contained a UNC path, the driveorunc will contain the host name\nand share up to but not including the fourth directory separator character.\ne.g. splitdrive(\"//host/computer/dir\") returns (\"//host/computer\", \"/dir\")\n\nPaths cannot contain both a drive letter and a UNC path.\n\n#### splitext\n\nSplit the extension from a pathname.\n\nExtension is everything from the last dot to the end, ignoring\nleading dots.  Returns \"(root, ext)\"; ext may be empty.\n\n### DATA\n\nall = ['normcase', 'isabs', 'join', 'splitdrive', 'split', 'splite...\naltsep = '/'\ncurdir = '.'\ndefpath = r'.;C:\\bin'\ndevnull = 'nul'\nextsep = '.'\npardir = '..'\npathsep = ';'\nsep = r'\\'\nsupportsunicodefilenames = False\n\n### FILE\n\n/usr/lib/python3.10/ntpath.py\n\n"
        }
    ],
    "structuredContent": {
        "command": "ntpath",
        "section": "",
        "mode": "pydoc",
        "summary": "ntpath - Common pathname manipulations, WindowsNT/95 version.",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "MODULE REFERENCE",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "FUNCTIONS",
                "lines": 5,
                "subsections": [
                    {
                        "name": "basename",
                        "lines": 2
                    },
                    {
                        "name": "commonpath",
                        "lines": 2
                    },
                    {
                        "name": "commonprefix",
                        "lines": 2
                    },
                    {
                        "name": "dirname",
                        "lines": 2
                    },
                    {
                        "name": "exists",
                        "lines": 2
                    },
                    {
                        "name": "expanduser",
                        "lines": 4
                    },
                    {
                        "name": "expandvars",
                        "lines": 4
                    },
                    {
                        "name": "getatime",
                        "lines": 2
                    },
                    {
                        "name": "getctime",
                        "lines": 2
                    },
                    {
                        "name": "getmtime",
                        "lines": 2
                    },
                    {
                        "name": "getsize",
                        "lines": 2
                    },
                    {
                        "name": "isabs",
                        "lines": 2
                    },
                    {
                        "name": "isdir",
                        "lines": 2
                    },
                    {
                        "name": "isfile",
                        "lines": 2
                    },
                    {
                        "name": "islink",
                        "lines": 3
                    },
                    {
                        "name": "ismount",
                        "lines": 3
                    },
                    {
                        "name": "join",
                        "lines": 2
                    },
                    {
                        "name": "lexists",
                        "lines": 2
                    },
                    {
                        "name": "normcase",
                        "lines": 4
                    },
                    {
                        "name": "normpath",
                        "lines": 7
                    },
                    {
                        "name": "relpath",
                        "lines": 2
                    },
                    {
                        "name": "samefile",
                        "lines": 5
                    },
                    {
                        "name": "sameopenfile",
                        "lines": 2
                    },
                    {
                        "name": "samestat",
                        "lines": 2
                    },
                    {
                        "name": "split",
                        "lines": 5
                    },
                    {
                        "name": "splitdrive",
                        "lines": 17
                    },
                    {
                        "name": "splitext",
                        "lines": 5
                    }
                ]
            },
            {
                "name": "DATA",
                "lines": 11,
                "subsections": []
            },
            {
                "name": "FILE",
                "lines": 3,
                "subsections": []
            }
        ]
    }
}