MCPcopy Create free account
hub / github.com/Qovery/engine / workspace_directory

Function workspace_directory

lib-engine/src/fs.rs:59–74  ·  view source on GitHub ↗
(working_root_dir: X, execution_id: S, dir_name: P)

Source from the content-addressed store, hash-verified

57}
58
59pub fn workspace_directory<X, S, P>(working_root_dir: X, execution_id: S, dir_name: P) -> Result<PathBuf, Error>
60where
61 X: AsRef<Path>,
62 S: AsRef<Path>,
63 P: AsRef<Path>,
64{
65 let dir = working_root_dir
66 .as_ref()
67 .join(".qovery-workspace")
68 .join(execution_id)
69 .join(dir_name);
70
71 create_dir_all(&dir)?;
72
73 Ok(dir)
74}
75
76fn archive_workspace_directory(working_root_dir: &str, execution_id: &str) -> Result<PathBuf, Error> {
77 let workspace_dir = root_workspace_directory(working_root_dir, execution_id)?;

Callers 15

root_workspace_directoryFunction · 0.85
newMethod · 0.85
newMethod · 0.85
newMethod · 0.85
newMethod · 0.85
newMethod · 0.85

Calls 1

as_refMethod · 0.80