diff options
-rw-r--r-- | src/filestore/path.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/filestore/path.rs b/src/filestore/path.rs index 7516beb..45c090d 100644 --- a/src/filestore/path.rs +++ b/src/filestore/path.rs @@ -148,6 +148,10 @@ impl<'a> FullArtifactPath<'a> { self.0 .0.join(&self.1 .0) } + pub fn exists(&self) -> bool { + self.joined().exists() + } + pub fn display(&self) -> FullArtifactPathDisplay<'a> { FullArtifactPathDisplay(self.0, self.1) } |