Uranium
Application Framework
Loading...
Searching...
No Matches
UM.SaveFile.SaveFile Class Reference

A class to handle atomic writes to a file. More...

Public Member Functions

 __init__ (self, path, mode, encoding="utf-8", **kwargs)
 
 __enter__ (self)
 
 __exit__ (self, exc_type, exc_value, traceback)
 

Protected Attributes

 _path
 
 _mode
 
 _encoding
 
 _open_kwargs
 
 _file
 
 _temp_file
 

Detailed Description

A class to handle atomic writes to a file.

This class can be used to perform atomic writes to a file. Atomic writes ensure that the file contents are always correct and that concurrent writes do not end up writing to the same file at the same time.


The documentation for this class was generated from the following file: