diff options
author | Matthias Beyer <matthias.beyer@atos.net> | 2021-01-28 11:37:19 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-02-11 18:40:48 +0100 |
commit | 9fbdedaa4982e54555df248547453d72b739807b (patch) | |
tree | 83b27a5736e7909450c1eecd3ca06804bb108849 /src/filestore | |
parent | a2ba53f129b8db18a501aaae946fd0e921a23ca8 (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.rs | 4 |
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) } |