summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@atos.net>2021-01-20 15:44:43 +0100
committerMatthias Beyer <matthias.beyer@atos.net>2021-01-21 14:54:49 +0100
commit4c697a9aa305bdab52c538944d1beff927a23d95 (patch)
tree6584b1477ce3cec69c8c49f85cf26e45372b4ce5 /src
parent88181fe4a3450f3d1b27e3b2350b7628b5646a3b (diff)
Add FullArtifactPath::exists()
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
Diffstat (limited to 'src')
-rw-r--r--src/filestore/path.rs4
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)
}