Retrieves modification time, size, and SHA-256 content hash of a file.
Returns:
A 3-tuple of (mtime, size in bytes, hex-encoded SHA-256 digest).
Methods
get_file_metadata
get_file_metadata(file_path: Union) -> tuple[float, int, str]
Retrieves modification time, size, and SHA-256 content hash of a file.
Returns:
A 3-tuple of (mtime, size in bytes, hex-encoded SHA-256 digest).
| Parameter | Type | Description |
|---|---|---|
| file_path | Union | Path to the file to inspect. |
Generated with Flude
Copyright © 2026