Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 477 Bytes

usage.rst

File metadata and controls

15 lines (9 loc) · 477 Bytes

Usage

Using the filesystem module is easily initialized by the following:

from watson.filesystem import Filesystem, backends

fs = Filesystem(backends.Local())
print(fs.read('path/to/file'))  # contents of file

In order to maintain a simplistic API, all the backends can be imported from watson.filesystem.backends.NAME_OF_BACKEND.

For more information regarding the various API methods avaiable, please see the reference library.