EmptyFileValue
#
- class ansys.tools.variableinterop.file_value.EmptyFileValue#
Bases:
LocalFileValue
Represents an empty file value.
Generally speaking, you should not create an instance of this class but instead use
ansys.tools.variableinterop.EMPTY_FILE
.
Overview#
Write the file’s contents to a new file. |
|
Read the contents of the file as a string. |
Get the path to the file that this |
Import detail#
from ansys.tools.variableinterop.file_value import EmptyFileValue
Property detail#
- property EmptyFileValue.actual_content_file_name: os.PathLike | None#
Get the path to the file that this
FileValue
instance wraps.- Returns:
Optional
[PathLike
]PathLike to the file.
Method detail#
- abstract EmptyFileValue.write_file(file_name: os.PathLike) None #
- Async:
Write the file’s contents to a new file.
- Parameters:
- file_name
PathLike
Path to the file to create.
- file_name
- Returns: