MCPcopy Create free account
hub / github.com/endbasic/endbasic / canonical

Method canonical

web/src/store.rs:64–66  ·  view source on GitHub ↗

Returns the canonical form of this key. In essence, this converts the file name in the key to uppercase. This is necessary to migrate older versions of the drive that were case sensitive.

(&self)

Source from the content-addressed store, hash-verified

62 /// In essence, this converts the file name in the key to uppercase. This is necessary to
63 /// migrate older versions of the drive that were case sensitive.
64 fn canonical(&self) -> Self {
65 Self(format!("{}{}", Key::PREFIX, self.name().to_ascii_uppercase()))
66 }
67
68 /// Constructs a key from a serialized representation of a key, or none if the `raw` string does
69 /// not correspond to one of our keys.

Callers 1

fixup_namesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected