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

Method create

crates/hyperqueue/src/common/serverdir.rs:42–52  ·  view source on GitHub ↗
(directory: &Path, record: &FullAccessRecord)

Source from the content-addressed store, hash-verified

40 }
41
42 pub fn create(directory: &Path, record: &FullAccessRecord) -> crate::Result<ServerDir> {
43 let dir_path = create_new_server_dir(directory)?;
44
45 let server_dir = ServerDir::open(&dir_path)?;
46 let access_file_path = server_dir.access_filename();
47 store_access_record(record, access_file_path)?;
48
49 let symlink = directory.join(SYMLINK_PATH);
50 create_symlink(&symlink, &dir_path)?;
51 Ok(server_dir)
52 }
53
54 pub fn path<P: AsRef<Path>>(&self, path: P) -> PathBuf {
55 self.path.join(path)

Callers

nothing calls this directly

Calls 4

create_new_server_dirFunction · 0.85
store_access_recordFunction · 0.85
create_symlinkFunction · 0.85
access_filenameMethod · 0.80

Tested by

no test coverage detected