Skip to main content

core.temp_folder

TempFolder Objects

class TempFolder()

__init__

def __init__(auto_cleanup: bool = True) -> None

Create a temporary directory

Arguments:

  • auto_cleanup (bool): If true this class will try to remove the temporary directory when it goes out of scope.

set_custom_temp_dir

@classmethod
def set_custom_temp_dir(cls, temp_dir_path: Path)

Can be used to set a custom base temp directory.

This function will attempt to create the directory if it does not exist.

Arguments:

  • temp_dir_path (Path): Path to custom temporary directory.