Public Member Functions | |
def | __init__ (self, path) |
def | exists (self, filename) |
def | open (self, filename, mode) |
Public Attributes | |
path | |
Static Private Member Functions | |
def | __init_path (path) |
A class for providing access to the mycroft FS sandbox. Intended to be attached to skills at initialization time to provide a skill-specific namespace.
Definition at line 19 of file scripts/mycroft/filesystem/__init__.py.
def mycroft.filesystem.FileSystemAccess.__init__ | ( | self, | |
path | |||
) |
Definition at line 26 of file scripts/mycroft/filesystem/__init__.py.
|
staticprivate |
Definition at line 30 of file scripts/mycroft/filesystem/__init__.py.
def mycroft.filesystem.FileSystemAccess.exists | ( | self, | |
filename | |||
) |
Definition at line 54 of file scripts/mycroft/filesystem/__init__.py.
def mycroft.filesystem.FileSystemAccess.open | ( | self, | |
filename, | |||
mode | |||
) |
Get a handle to a file (with the provided mode) within the skill-specific namespace. :param filename: a str representing a path relative to the namespace. subdirs not currently supported. :param mode: a file handle mode :return: an open file handle.
Definition at line 39 of file scripts/mycroft/filesystem/__init__.py.
mycroft.filesystem.FileSystemAccess.path |
Definition at line 27 of file scripts/mycroft/filesystem/__init__.py.