committed by
GitHub
parent
0cfae3d5eb
commit
e3d2d11e8a
@@ -45,8 +45,10 @@ where
|
||||
{
|
||||
fn if_exists(self) -> Option<Self> {
|
||||
if self.as_ref().exists() {
|
||||
debug!("Path {:?} exists", self.as_ref());
|
||||
Some(self)
|
||||
} else {
|
||||
debug!("Path {:?} doesn't exist", self.as_ref());
|
||||
None
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user