feat(status): relative path of obj

This commit is contained in:
grimhilt
2024-09-11 23:36:29 +02:00
parent e66dc8d408
commit 8f636b4bf7
6 changed files with 107 additions and 24 deletions

View File

@@ -66,6 +66,13 @@ impl ClientTest {
Config::from(Some(&self.volume))
}
pub fn new_config(&self, path: &str) -> Config {
let mut full_path = self.volume.clone();
full_path.push_str("/");
full_path.push_str(path);
Config::from(Some(&full_path))
}
pub fn ok(self) -> io::Result<()> {
fs::remove_dir_all(&self.volume)?;
Ok(())