Impl Ref::is_ref_to_dir()
This commit is contained in:
parent
ca48e2ac39
commit
7613526aff
1 changed files with 2 additions and 2 deletions
|
@ -204,8 +204,8 @@ impl<'a> Ref<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Alias for `r.fs_link_exists() && r.deref().is_dir()`
|
/// Alias for `r.fs_link_exists() && r.deref().is_dir()`
|
||||||
pub fn is_ref_to_dir(&self) -> bool {
|
pub fn is_ref_to_dir(&self) -> Result<bool> {
|
||||||
unimplemented!()
|
self.fs_file().map(|pathbuf| pathbuf.is_dir())
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Alias for `!Ref::fs_link_exists()`
|
/// Alias for `!Ref::fs_link_exists()`
|
||||||
|
|
Loading…
Reference in a new issue