Make a temporary file system that exists in a folder provided by the OS. All files contained in a TempFS are removed when the close method is called (or when the TempFS is cleaned up by Python).
TempFS(identifier=None, temp_dir=None, dir_mode=448, thread_synchronize=True)¶
Create a Filesystem in a temporary directory (with tempfile.mkdtemp), and removes it when the TempFS object is cleaned up.
Creates a temporary Filesystem
identifier – A string that is included in the name of the temporary directory, default uses “TempFS”
Removes the temporary directory.
This will be called automatically when the object is cleaned up by Python, although it is advisable to call it manually. Note that once this method has been called, the FS object may no longer be used.