ResourceInfo#

class lsst.resources.ResourceInfo(uri: str, is_file: bool, size: int, last_modified: datetime | None, checksums: dict[str, Any])#

Bases: object

Information about this resource.

Attributes Summary

checksums

Checksums for this file.

is_file

Indicate whether the resource is a file or a directory.

last_modified

Modification date of the resource, if known.

size

Size of the file in bytes.

uri

URI in string form of the resource from which this information is derived.

Attributes Documentation

checksums: dict[str, Any] = <dataclasses._MISSING_TYPE object>#

Checksums for this file. Supported checksum implementations are backend dependent.

is_file: bool = <dataclasses._MISSING_TYPE object>#

Indicate whether the resource is a file or a directory.

last_modified: datetime | None = <dataclasses._MISSING_TYPE object>#

Modification date of the resource, if known.

size: int = <dataclasses._MISSING_TYPE object>#

Size of the file in bytes. A directory or a URI that has no concept of size returns 0.

uri: str = <dataclasses._MISSING_TYPE object>#

URI in string form of the resource from which this information is derived.