This module provides a subset of the operating system dependent functionality provided by the optional built-in module posix. It is best accessed through the more portable standard module os.
The following functions are available in this module: chdir, close, dup, fdopen, getcwd, lseek, listdir, mkdir, open, read, rename, rmdir, stat, sync, unlink, write, as well as the exception error. Note that the times returned by stat() are floating-point values, like all time values in MacPython.
One additional function is available: xstat(). This function returns the same information as stat(), but with three extra values appended: the size of the resource fork of the file and its 4-char creator and type.