diff --git a/libimagref/src/reference.rs b/libimagref/src/reference.rs index 6b994441..1066e53c 100644 --- a/libimagref/src/reference.rs +++ b/libimagref/src/reference.rs @@ -54,6 +54,11 @@ impl<'a> Ref<'a> { unimplemented!() } + /// Alias for `!Ref::fs_link_exists()` + pub fn is_dangling(&self) -> bool { + !self.fs_link_exists() + } + /// check whether the pointer the Ref represents is valid /// This includes: /// - Hashsum of the file is still the same as stored in the Ref