| |
- abspath(path)
- # Return an absolute path.
- basename(s)
- no doc string
- dirname(s)
- no doc string
- exists(s)
- # Return true if the pathname refers to an existing file or directory.
- expanduser(path)
- #
- # dummy expanduser to retain interface-compatability with other
- # operating systems.
- expandvars(path)
- #
- # dummy expandvars to retain interface-compatability with other
- # operating systems.
- getatime(filename)
- Return the last access 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().
- 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).
- isdir(s)
- # Return true if the pathname refers to an existing directory.
- isfile(s)
- # Return true if the pathname refers to an existing regular file.
- islink(s)
- # Return true if the pathname refers to a symbolic link.
- # (Always false on the Mac, until we understand Aliases.)
- join(s, *p)
- no doc string
- lower(no arg info)
- lower(s) -> string
- Return a copy of the string s converted to lowercase.
- normpath(s)
- no doc string
- split(s)
- # Split a pathname in 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.
- 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).
- splitext(p)
- # Split a path in 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.
- walk(top, func, arg)
- # Directory tree walk.
- # For each directory under top (including top itself),
- # func(arg, dirname, filenames) is called, where
- # dirname is the name of the directory and filenames is the list
- # of files (and subdirectories etc.) in the directory.
- # The func may modify the filenames list, to implement a filter,
- # or to impose a different order of visiting.
|