GeoEco.DataManagement.Directories.TemporaryDirectory

class GeoEco.DataManagement.Directories.TemporaryDirectory(automaticallyDelete=True)

Bases: object

Represents a temporary working directory, suitable for storing temporary files during processing.

Note

This class is part of the internal implementation of GeoEco and is not intended to be used by external callers.

The directory is created by calling GeoEco.DataManagement.Directories.Directory.CreateTemporaryDirectory(). Please see the documentation for that function for more information on where the directory is created and what it it is named.

Parameters:

automaticallyDelete (bool, optional) – If True (the default), the directory will be automatically deleted with the last reference to the TemporaryDirectory object is released and TemporaryDirectory.__del__() is called by the Python garbage collector. If False, the directory will not be automatically deleted. The caller should delete the directory. Non-automatic deletion is used primarily for debugging during GeoEco development.

Returns:

TemporaryDirectory instance.

Return type:

TemporaryDirectory

Properties

property AutomaticallyDelete

(bool) If True (the default), the directory will be automatically deleted with the last reference to the TemporaryDirectory object is released and TemporaryDirectory.__del__() is called by the Python garbage collector. If False, the directory will not be automatically deleted. The caller should delete the directory. Non-automatic deletion is used primarily for debugging during GeoEco development.

property Path

(str) Path of the temporary directory. Read only. Minimum length꞉ 1.

Methods

DecompressInputArgument

Decompresses the file specified by a method's input argument into the temporary directory.