summaryrefslogtreecommitdiffstats
path: root/src/filestore
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@atos.net>2021-01-28 11:37:19 +0100
committerMatthias Beyer <mail@beyermatthias.de>2021-02-11 18:40:48 +0100
commit9fbdedaa4982e54555df248547453d72b739807b (patch)
tree83b27a5736e7909450c1eecd3ca06804bb108849 /src/filestore
parenta2ba53f129b8db18a501aaae946fd0e921a23ca8 (diff)
Add FullArtifactPath::artifact_path() getter
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
Diffstat (limited to 'src/filestore')
-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 60d8e56..c26b9c6 100644
--- a/src/filestore/path.rs
+++ b/src/filestore/path.rs
@@ -139,6 +139,10 @@ impl AsRef<Path> for ArtifactPath {
pub struct FullArtifactPath<'a>(&'a StoreRoot, &'a ArtifactPath);
impl<'a> FullArtifactPath<'a> {
+ pub fn artifact_path(&self) -> &ArtifactPath {
+ self.1
+ }
+
pub fn joined(&self) -> PathBuf {
self.0 .0.join(&self.1 .0)
}