Exposes the OS Filesystem as an FS object.
For example, to print all the files and directories in the OS root:
>>> from fs.osfs import OSFS >>> home_fs = OSFS('/') >>> print home_fs.listdir()
Expose the underlying operating-system filesystem as an FS object.
This is the most basic of filesystems, which simply shadows the underlaying filesystem of the OS. Most of its methods simply defer to the matching methods in the os and os.path modules.
Creates an FS object that represents the OS Filesystem under a given root path
Convert a system-level path into an FS-level path.
This basically the reverse of getsyspath(). If the path does not refer to a location within this filesystem, ValueError is raised.
a path within this FS object