AlreadyLocalFileContentContext#
- class AlreadyLocalFileContentContext(local_content_path: anyio.Path | None = None)#
Bases: LocalFileContentContext
, AsyncLocalFileContentContext
Provides a default local file context for when the file is already hosted locally.
Overview#
Call this method before exiting to prevent deleting the file on exit. |
Get the local path to the content. |
Import detail#
from ansys.tools.variableinterop.file_value import AlreadyLocalFileContentContext
Property detail#
- property AlreadyLocalFileContentContext.content_path: os.PathLike | None#
Get the local path to the content.
Method detail#
- AlreadyLocalFileContentContext.keep_file_on_exit() None #
Call this method before exiting to prevent deleting the file on exit.