origin_id_for
origin_id_for(
source: ‘ArraySource’ ,
size_bytes: ‘int | None’ = None,
mtime_ns: ‘int | None’ = None,
ordinal: ‘object’ = None,
)-> ‘str’
Return the origin id of a stored patch without touching the filesystem.
Parameters
| Parameter | Description |
|---|---|
| source | The format, version, canonical path, and native logical patch key. |
| size_bytes | The size of the source, when available. |
| mtime_ns | The source’s modification time, when available. |
| ordinal | The fallback for a source without a native key. |
Note
An id stored in the file remains authoritative. A derived id is only as good as its fields: changing the path, size, or modification time changes it, and a rewrite which keeps all three does not.