Module temp_files
source code
OMERO Support for temporary files and directories
|
TempFileManager
Creates temporary files and folders and makes a best effort to
remove them on exit (or sooner).
|
|
create_path(prefix="omero",
suffix=".tmp",
folder=False)
Uses the global TempFileManager to create a temporary file. |
source code
|
|
|
|
|
gettempdir()
Returns the dir value for the global TempFileManager. |
source code
|
|
|
manager = TempFileManager()
Global TempFileManager instance for use by the current process and
registered with the atexit module for cleaning up all created files
on exit.
|
Imports:
os,
sys,
atexit,
getpass,
logging,
tempfile,
threading,
traceback,
exceptions,
portalocker,
path,
configure_logging
Removes the file from the global TempFileManager. The file will be
deleted if it still exists.
|
manager
Global TempFileManager instance for use by the current process and
registered with the atexit module for cleaning up all created files on
exit. Other instances can be created for specialized purposes.
- Value:
-
|