LocalFileContentContext#

class LocalFileContentContext#

Bases: contextlib.AbstractContextManager, abc.ABC

Represents the context during which a locally available copy of file value content

Overview#

keep_file_on_exit

Call this method before exiting to prevent deleting the file on exit.

content_path

Get the local path to the content.

Import detail#

from ansys.tools.variableinterop.file_value import LocalFileContentContext

Property detail#

property LocalFileContentContext.content_path: anyio.Path#
Abstractmethod:

Get the local path to the content.

Method detail#

abstract LocalFileContentContext.keep_file_on_exit() None#

Call this method before exiting to prevent deleting the file on exit.