diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-06-14 11:09:19 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-07-04 19:29:02 +0200 |
commit | ca86f3c6ad90ea7b72404176b7dffb7e9305cddb (patch) | |
tree | f2ee93a7f9dc52ccef9fcdae2985357151712b63 /libimagref | |
parent | 682acfcf81a39d2157744319f9baac600754dcff (diff) |
Impl Ref::is_ref_to_dir()
Diffstat (limited to 'libimagref')
-rw-r--r-- | libimagref/src/reference.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libimagref/src/reference.rs b/libimagref/src/reference.rs index 151afe4c..f79f01b4 100644 --- a/libimagref/src/reference.rs +++ b/libimagref/src/reference.rs @@ -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() |