Impl Ref::fs_link_valid()

This commit is contained in:
Matthias Beyer 2016-06-24 17:01:40 +02:00
parent 5bf11af82c
commit 9604f94f17

View file

@ -212,8 +212,13 @@ impl<'a> Ref<'a> {
/// This includes: /// This includes:
/// - Hashsum of the file is still the same as stored in the Ref /// - Hashsum of the file is still the same as stored in the Ref
/// - file permissions are still valid /// - file permissions are still valid
pub fn fs_link_valid(&self) -> bool { pub fn fs_link_valid(&self) -> Result<bool> {
unimplemented!() match (self.fs_link_valid_permissions(), self.fs_link_valid_hash()) {
(Ok(true) , Ok(true)) => Ok(true),
(Ok(_) , Ok(_)) => Ok(false),
(Err(e) , _) => Err(e),
(_ , Err(e)) => Err(e),
}
} }
/// Check whether the file permissions of the referenced file are equal to the stored /// Check whether the file permissions of the referenced file are equal to the stored