summaryrefslogtreecommitdiffstats
path: root/libimagref
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2016-06-14 11:09:19 +0200
committerMatthias Beyer <mail@beyermatthias.de>2016-07-04 19:29:02 +0200
commitca86f3c6ad90ea7b72404176b7dffb7e9305cddb (patch)
treef2ee93a7f9dc52ccef9fcdae2985357151712b63 /libimagref
parent682acfcf81a39d2157744319f9baac600754dcff (diff)
Impl Ref::is_ref_to_dir()
Diffstat (limited to 'libimagref')
-rw-r--r--libimagref/src/reference.rs5
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()