LocalFiles¶
-
class
skassist.local_store.
LocalFiles
(path)¶ Base class for managing files in path.
No files are loaded by default. Files must be loaded through the load() function, after which they are availible through self.local[filename]. The functions drop(), save() and done() are used to drop a file or save it to disk, or both.
- Attributes:
path (:obj:str): Path to the managed folder.
local (:obj:dict): Dictionary holding the loaded files with key: filename.
Todo
- exception handling and throwing
- implement list_files()
- implement with LocalFile.load(filename)
- implement with LocalFile.load([filenames])