The Base Storage

This is a module for an Abstract Base Class to create the minimal file-like interface for storage objects. Although the model for storage is file, it behaves a little differently in that it stores any paths that need to be added (e.g. for sub-folders).

The BaseStorage

BaseStorage() A base-class based on file-objects
BaseStorage.file The open file object
BaseStorage.close() Closes self.file if it exists, sets self.closed to True
BaseStorage.open(name) Opens a file for writing
BaseStorage.write(text[, exceptions]) Writes the text to the file
BaseStorage.writeline(text) Adds newline to end of text and writes it to the file
BaseStorage.writelines(texts[, exceptions]) Writes the lines to the file

Table Of Contents

Navigation