genericpath - pydoc - phpman

Look up a command

 

Markdown Format | JSON API | MCP Server Tool


Help on module genericpath:

NAME
    genericpath

MODULE REFERENCE
    https://docs.python.org/3.10/library/genericpath.html

    The following documentation is automatically generated from the Python
    source files.  It may be incomplete, incorrect or include features that
    are considered implementation detail and may vary between Python
    implementations.  When in doubt, consult the module reference at the
    location listed above.

DESCRIPTION
    Path operations common to more than one OS
    Do not use directly.  The OS specific modules import the appropriate
    functions from this module themselves.

FUNCTIONS
    commonprefix(m)
        Given a list of pathnames, returns the longest common leading component

    exists(path)
        Test whether a path exists.  Returns False for broken symbolic links

    getatime(filename)
        Return the last access time of a file, reported by os.stat().

    getctime(filename)
        Return the metadata change time of a file, reported by os.stat().

    getmtime(filename)
        Return the last modification time of a file, reported by os.stat().

    getsize(filename)
        Return the size of a file, reported by os.stat().

    isdir(s)
        Return true if the pathname refers to an existing directory.

    isfile(path)
        Test whether a path is a regular file

    samefile(f1, f2)
        Test whether two pathnames reference the same actual file or directory

        This is determined by the device number and i-node number and
        raises an exception if an os.stat() call on either pathname fails.

    sameopenfile(fp1, fp2)
        Test whether two open file objects reference the same file

    samestat(s1, s2)
        Test whether two stat buffers reference the same file

DATA
    __all__ = ['commonprefix', 'exists', 'getatime', 'getctime', 'getmtime...

FILE
    /usr/lib/python3.10/genericpath.py



Generated by phpMan Author: Che Dong Under GNU General Public License
2026-06-02 05:13 @216.73.216.198 CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 TransitionalValid CSS!