AsyncLocalFileContentContext#

class AsyncLocalFileContentContext#

Bases: contextlib.AbstractAsyncContextManager, 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 AsyncLocalFileContentContext

Property detail#

property AsyncLocalFileContentContext.content_path: anyio.Path#
Abstractmethod:

Get the local path to the content.

Method detail#

abstract AsyncLocalFileContentContext.keep_file_on_exit() None#

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