Impl Ref::is_ref_to_dir()

This commit is contained in:
Matthias Beyer 2016-06-14 11:09:19 +02:00
parent 682acfcf81
commit ca86f3c6ad

View file

@ -59,6 +59,11 @@ impl<'a> Ref<'a> {
unimplemented!()
}
/// Alias for `r.fs_link_exists() && r.deref().is_dir()`
pub fn is_ref_to_dir(&self) -> bool {
unimplemented!()
}
/// Alias for `!Ref::fs_link_exists()`
pub fn is_dangling(&self) -> bool {
!self.fs_link_exists()