RegisteredFile#

class ansys.optislang.core.io.RegisteredFile(path: Path | str, id: str, comment: str, tag: str, usage: RegisteredFileUsage | str)#

Provides for operating on registered files.

Methods

Attributes

RegisteredFile.comment

File description.

RegisteredFile.exists

Check whether file exists.

RegisteredFile.filename

Get file name.

RegisteredFile.id

File id.

RegisteredFile.last_modified_seconds

Last modified time as a timestamp.

RegisteredFile.last_modified_str

Last modified time as a datetime.

RegisteredFile.path

Path to the file.

RegisteredFile.size

File size in bytes.

RegisteredFile.tag

File uid.

RegisteredFile.usage

Usage of registered file.