MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / from_metadata

Method from_metadata

crates/openshell-supervisor-network/src/identity.rs:35–47  ·  view source on GitHub ↗
(metadata: &Metadata)

Source from the content-addressed store, hash-verified

33
34impl FileFingerprint {
35 fn from_metadata(metadata: &Metadata) -> Self {
36 Self {
37 len: metadata.len(),
38 mtime_sec: metadata.mtime(),
39 mtime_nsec: metadata.mtime_nsec(),
40 ctime_sec: metadata.ctime(),
41 ctime_nsec: metadata.ctime_nsec(),
42 #[cfg(unix)]
43 dev: metadata.dev(),
44 #[cfg(unix)]
45 ino: metadata.ino(),
46 }
47 }
48}
49
50impl PartialEq for FileFingerprint {

Callers

nothing calls this directly

Calls 1

lenMethod · 0.80

Tested by

no test coverage detected