Vega strike Python Modules doc
0.5.1
Documentation of the " Modules " folder of Vega strike
|
Functions | |
def | normcase |
def | isabs |
def | join |
def | split |
def | splitext |
def | splitdrive |
def | dirname |
def | basename |
def | isdir |
def | getsize |
def | getmtime |
def | getatime |
def | islink |
def | isfile |
def | exists |
def | commonprefix |
def | expandvars |
def | expanduser |
def | normpath |
def | walk |
def | abspath |
Variables | |
list | __all__ |
string | norm_error = 'macpath.norm_error: path cannot be normalized' |
realpath = abspath | |
Pathname and path-related operations for the Macintosh.
def macpath.abspath | ( | path) |
Return an absolute path.
Definition at line 229 of file macpath.py.
References isabs(), join(), and normpath().
def macpath.basename | ( | s) |
Definition at line 93 of file macpath.py.
def macpath.commonprefix | ( | m) |
Definition at line 152 of file macpath.py.
def macpath.dirname | ( | s) |
Definition at line 92 of file macpath.py.
def macpath.exists | ( | s) |
Return true if the pathname refers to an existing file or directory.
Definition at line 141 of file macpath.py.
def macpath.expanduser | ( | path) |
Dummy to retain interface-compatibility with other operating systems.
Definition at line 169 of file macpath.py.
def macpath.expandvars | ( | path) |
Dummy to retain interface-compatibility with other operating systems.
Definition at line 164 of file macpath.py.
def macpath.getatime | ( | filename) |
Return the last access time of a file, reported by os.stat().
Definition at line 118 of file macpath.py.
def macpath.getmtime | ( | filename) |
Return the last modification time of a file, reported by os.stat().
Definition at line 113 of file macpath.py.
def macpath.getsize | ( | filename) |
Return the size of a file, reported by os.stat().
Definition at line 108 of file macpath.py.
def macpath.isabs | ( | s) |
Return true if a path is absolute. On the Mac, relative paths begin with a colon, but as a special case, paths with no colons at all are also relative. Anything else is absolute (the string up to the first colon is the volume name).
Definition at line 17 of file macpath.py.
def macpath.isdir | ( | s) |
Return true if the pathname refers to an existing directory.
Definition at line 96 of file macpath.py.
References stat.S_ISDIR().
def macpath.isfile | ( | s) |
Return true if the pathname refers to an existing regular file.
Definition at line 131 of file macpath.py.
References stat.S_ISREG().
def macpath.islink | ( | s) |
Return true if the pathname refers to a symbolic link. Always false on the Mac, until we understand Aliases.)
Definition at line 124 of file macpath.py.
def macpath.join | ( | s, | |
p | |||
) |
Definition at line 27 of file macpath.py.
References isabs().
def macpath.normcase | ( | path) |
Definition at line 13 of file macpath.py.
def macpath.normpath | ( | s) |
Normalize a pathname. Will return the same result for equivalent paths.
Definition at line 175 of file macpath.py.
References join().
def macpath.split | ( | s) |
Split a pathname into two parts: the directory leading up to the final bit, and the basename (the filename, without colons, in that directory). The result (s, t) is such that join(s, t) yields the original argument.
Definition at line 43 of file macpath.py.
def macpath.splitdrive | ( | p) |
Split a pathname into a drive specification and the rest of the path. Useful on DOS/Windows/NT; on the Mac, the drive is always empty (don't use the volume name -- it doesn't have the same syntactic and semantic oddities as DOS drive letters, such as there being a separate current directory per drive).
Definition at line 80 of file macpath.py.
def macpath.splitext | ( | p) |
Split a path into root and extension. The extension is everything starting at the last dot in the last pathname component; the root is everything before that. It is always true that root + ext == p.
Definition at line 58 of file macpath.py.
def macpath.walk | ( | top, | |
func, | |||
arg | |||
) |
Directory tree walk with callback function. For each directory in the directory tree rooted at top (including top itself, but excluding '.' and '..'), call func(arg, dirname, fnames). dirname is the name of the directory, and fnames a list of the names of the files and subdirectories in dirname (excluding '.' and '..'). func may modify the fnames list in-place (e.g. via del or slice assignment), and walk will only recurse into the subdirectories whose names remain in fnames; this can be used to implement a filter, or to impose a specific order of visiting. No semantics are defined for, or required of, arg, beyond that arg is always passed to func. It can be used, e.g., to pass a filename pattern, or a mutable object designed to accumulate statistics. Passing None for arg is common.
Definition at line 203 of file macpath.py.
References isdir(), and join().
list __all__ |
Definition at line 6 of file macpath.py.
string norm_error = 'macpath.norm_error: path cannot be normalized' |
Definition at line 173 of file macpath.py.
realpath = abspath |
Definition at line 236 of file macpath.py.