ResourceInfo#
- class lsst.resources.ResourceInfo(uri: str, is_file: bool, size: int, last_modified: datetime | None, checksums: dict[str, Any])#
Bases:
objectInformation about this resource.
Attributes Summary
Checksums for this file.
Indicate whether the resource is a file or a directory.
Modification date of the resource, if known.
Size of the file in bytes.
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.