{
    "mode": "pydoc",
    "parameter": "genericpath",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/pydoc/genericpath/json",
    "generated": "2026-06-02T15:01:31Z",
    "sections": {
        "NAME": {
            "content": "genericpath\n",
            "subsections": []
        },
        "MODULE REFERENCE": {
            "content": "https://docs.python.org/3.10/library/genericpath.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",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Path operations common to more than one OS\nDo not use directly.  The OS specific modules import the appropriate\nfunctions from this module themselves.\n",
            "subsections": []
        },
        "FUNCTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "commonprefix",
                    "content": "Given a list of pathnames, returns the longest common leading component\n"
                },
                {
                    "name": "exists",
                    "content": "Test whether a path exists.  Returns False for broken symbolic links\n"
                },
                {
                    "name": "getatime",
                    "content": "Return the last access time of a file, reported by os.stat().\n"
                },
                {
                    "name": "getctime",
                    "content": "Return the metadata change time of a file, reported by os.stat().\n"
                },
                {
                    "name": "getmtime",
                    "content": "Return the last modification time of a file, reported by os.stat().\n"
                },
                {
                    "name": "getsize",
                    "content": "Return the size of a file, reported by os.stat().\n"
                },
                {
                    "name": "isdir",
                    "content": "Return true if the pathname refers to an existing directory.\n"
                },
                {
                    "name": "isfile",
                    "content": "Test whether a path is a regular file\n"
                },
                {
                    "name": "samefile",
                    "content": "Test 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"
                },
                {
                    "name": "sameopenfile",
                    "content": "Test whether two open file objects reference the same file\n"
                },
                {
                    "name": "samestat",
                    "content": "Test whether two stat buffers reference the same file\n"
                }
            ]
        },
        "DATA": {
            "content": "all = ['commonprefix', 'exists', 'getatime', 'getctime', 'getmtime...\n",
            "subsections": []
        },
        "FILE": {
            "content": "/usr/lib/python3.10/genericpath.py\n\n",
            "subsections": []
        }
    },
    "summary": "genericpath",
    "flags": [],
    "examples": [],
    "see_also": []
}