MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / file_list_archive_prefix

Function file_list_archive_prefix

crates/openshell-cli/src/ssh.rs:1051–1062  ·  view source on GitHub ↗
(local_path: &Path)

Source from the content-addressed store, hash-verified

1049}
1050
1051fn file_list_archive_prefix(local_path: &Path) -> Option<PathBuf> {
1052 if !local_path.is_dir() {
1053 return None;
1054 }
1055
1056 let prefix = directory_upload_prefix(local_path);
1057 if prefix == "." {
1058 None
1059 } else {
1060 Some(PathBuf::from(prefix))
1061 }
1062}
1063
1064/// Run a small command on the sandbox over SSH and capture its stdout.
1065///

Callers 1

sandbox_sync_up_filesFunction · 0.85

Calls 1

directory_upload_prefixFunction · 0.85

Tested by

no test coverage detected