BatchFileProperties Class

Information about a file or directory on a Compute Node with additional properties.

Constructor

BatchFileProperties(*, url: str | None = None, is_directory: bool | None = None, last_modified: datetime, content_length: int, creation_time: datetime | None = None, content_type: str | None = None, file_mode: str | None = None)

Keyword-Only Parameters

Name Description
url
Default value: None
is_directory
Default value: None
last_modified
Required
content_length
Required
creation_time
Default value: None
content_type
Default value: None
file_mode
Default value: None

Variables

Name Description
url
str

The URL of the file.

is_directory

Whether the object represents a directory.

creation_time

The file creation time. The creation time is not returned for files on Linux Compute Nodes.

last_modified

The time at which the file was last modified. Required.

content_length
int

The length of the file. Required.

content_type
str

The content type of the file.

file_mode
str

The file mode attribute in octal format. The file mode is returned only for files on Linux Compute Nodes.

Attributes

content_length

The length of the file. Required.

content_length: int

content_type

The content type of the file.

content_type: str | None

creation_time

The file creation time. The creation time is not returned for files on Linux Compute Nodes.

creation_time: datetime | None

file_mode

The file mode attribute in octal format. The file mode is returned only for files on Linux Compute Nodes.

file_mode: str | None

is_directory

Whether the object represents a directory.

is_directory: bool | None

last_modified

The time at which the file was last modified. Required.

last_modified: datetime

url

The URL of the file.

url: str | None