MCPcopy Index your code
hub / github.com/endbasic/endbasic / make_canonical

Method make_canonical

std/src/storage/mod.rs:411–417  ·  view source on GitHub ↗

Converts a `raw_location`, which needn't exist, to its canonical form.

(&self, raw_location: &str)

Source from the content-addressed store, hash-verified

409
410 /// Converts a `raw_location`, which needn't exist, to its canonical form.
411 pub fn make_canonical(&self, raw_location: &str) -> io::Result<String> {
412 let mut location = Location::new(raw_location)?;
413 if location.drive.is_none() {
414 location.drive = Some(self.current.clone());
415 }
416 Ok(location.to_string())
417 }
418
419 /// Converts a `raw_location`, which needn't exist but must represent a file (not a directory),
420 /// to its canonical form.

Callers 1

show_dirFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected