Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/paths/src/lib.rs')
-rw-r--r--crates/paths/src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/paths/src/lib.rs b/crates/paths/src/lib.rs
index 4d7af96cd9..0084244161 100644
--- a/crates/paths/src/lib.rs
+++ b/crates/paths/src/lib.rs
@@ -141,6 +141,10 @@ impl AbsPathBuf {
pub fn push<P: AsRef<Utf8Path>>(&mut self, suffix: P) {
self.0.push(suffix)
}
+
+ pub fn join(&self, path: impl AsRef<Utf8Path>) -> Self {
+ Self(self.0.join(path))
+ }
}
impl fmt::Display for AbsPathBuf {