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 | basename |
def | dirname |
def | commonprefix |
def | getsize |
def | getmtime |
def | getatime |
def | islink |
def | exists |
def | isdir |
def | isfile |
def | samefile |
def | sameopenfile |
def | samestat |
def | ismount |
def | walk |
def | expanduser |
def | expandvars |
def | normpath |
def | abspath |
def | realpath |
Variables | |
list | __all__ |
_varprog = None | |
Common operations on Posix pathnames. Instead of importing this module directly, import os and refer to this module as os.path. The "os.path" name is an alias for this module on Posix systems; on other systems (e.g. Mac, Windows), os.path provides the same operations in a manner specific to that platform, and is an alias to another module (e.g. macpath, ntpath). Some of this can actually be useful on non-Posix systems too, e.g. for manipulation of the pathname component of URLs.
def posixpath.abspath | ( | path) |
Return an absolute path.
Definition at line 387 of file posixpath.py.
References isabs(), join(), and normpath().
def posixpath.commonprefix | ( | m) |
Definition at line 122 of file posixpath.py.
def posixpath.dirname | ( | p) |
def posixpath.exists | ( | path) |
Test whether a path exists. Returns false for broken symbolic links
Definition at line 168 of file posixpath.py.
def posixpath.expanduser | ( | path) |
Expand ~ and ~user constructions. If user or $HOME is unknown, do nothing.
Definition at line 299 of file posixpath.py.
def posixpath.expandvars | ( | path) |
Expand shell variables of form $var and ${var}. Unknown variables are left unchanged.
Definition at line 328 of file posixpath.py.
def posixpath.getatime | ( | filename) |
Return the last access time of a file, reported by os.stat().
Definition at line 147 of file posixpath.py.
def posixpath.getmtime | ( | filename) |
Return the last modification time of a file, reported by os.stat().
Definition at line 142 of file posixpath.py.
def posixpath.getsize | ( | filename) |
Return the size of a file, reported by os.stat().
Definition at line 137 of file posixpath.py.
def posixpath.isabs | ( | s) |
Test whether a path is absolute
Definition at line 35 of file posixpath.py.
def posixpath.isdir | ( | path) |
Test whether a path is a directory
Definition at line 181 of file posixpath.py.
References stat.S_ISDIR().
def posixpath.isfile | ( | path) |
Test whether a path is a regular file
Definition at line 194 of file posixpath.py.
References stat.S_ISREG().
def posixpath.islink | ( | path) |
Test whether a path is a symbolic link
Definition at line 156 of file posixpath.py.
References stat.S_ISLNK().
def posixpath.ismount | ( | path) |
Test whether a path is a mount point
Definition at line 234 of file posixpath.py.
References join().
def posixpath.join | ( | a, | |
p | |||
) |
Join two or more pathname components, inserting '/' as needed
Definition at line 44 of file posixpath.py.
def posixpath.normcase | ( | s) |
Normalize case of pathname. Has no effect under Posix
Definition at line 27 of file posixpath.py.
def posixpath.normpath | ( | path) |
Normalize path, eliminating double slashes, etc.
Definition at line 360 of file posixpath.py.
References join().
def posixpath.realpath | ( | filename) |
Return the canonical path of the specified filename, eliminating any symbolic links encountered in the path.
Definition at line 397 of file posixpath.py.
References abspath(), islink(), join(), normpath(), and split().
def posixpath.samefile | ( | f1, | |
f2 | |||
) |
Test whether two pathnames reference the same actual file
Definition at line 205 of file posixpath.py.
References samestat().
def posixpath.sameopenfile | ( | fp1, | |
fp2 | |||
) |
Test whether two open file objects reference the same file
Definition at line 215 of file posixpath.py.
References samestat().
def posixpath.samestat | ( | s1, | |
s2 | |||
) |
def posixpath.split | ( | p) |
Split a pathname. Returns tuple "(head, tail)" where "tail" is everything after the final slash. Either part may be empty.
Definition at line 62 of file posixpath.py.
def posixpath.splitdrive | ( | p) |
Split a pathname into drive and path. On Posix, drive is always empty.
Definition at line 100 of file posixpath.py.
def posixpath.splitext | ( | p) |
Split the extension from a pathname. Extension is everything from the last dot to the end. Returns "(root, ext)", either part may be empty.
Definition at line 78 of file posixpath.py.
def posixpath.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 260 of file posixpath.py.
References join(), and stat.S_ISDIR().
list __all__ |
Definition at line 16 of file posixpath.py.
_varprog = None |
Definition at line 326 of file posixpath.py.