ape.parts.storage.filestorage.FileStorage.open

FileStorage.open(name, overwrite=False, mode='w', return_copy=True)

Opens a file for writing

Param:
  • name: a basename (no path) for the file
  • overwrite: If True, clobber existing files with the same name
  • mode: file-mode (e.g. ‘w’ or ‘a’)
  • return_copy: If True, return a copy of self, otherwise return self
Returns:

copy of self with file as open file and closed set to False

Navigation