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