MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / absolute_path

Function absolute_path

crates/hyperqueue/src/common/utils/fs.rs:7–14  ·  view source on GitHub ↗
(path: PathBuf)

Source from the content-addressed store, hash-verified

5use std::path::{Path, PathBuf};
6
7pub fn absolute_path(path: PathBuf) -> PathBuf {
8 if path.is_absolute() {
9 path
10 } else {
11 let env = std::env::current_dir().unwrap();
12 env.join(path)
13 }
14}
15
16pub fn create_symlink(symlink_path: &Path, target: &Path) -> crate::Result<()> {
17 if symlink_path.exists() {

Callers 2

openMethod · 0.85
make_global_settingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected