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

Function local_upload_path_is_file_like

crates/openshell-cli/src/ssh.rs:737–742  ·  view source on GitHub ↗
(path: &Path)

Source from the content-addressed store, hash-verified

735}
736
737fn local_upload_path_is_file_like(path: &Path) -> bool {
738 fs::symlink_metadata(path).is_ok_and(|metadata| {
739 let file_type = metadata.file_type();
740 file_type.is_file() || file_type.is_symlink()
741 })
742}
743
744/// Core tar-over-SSH upload: streams a tar archive into `dest_dir` on the
745/// sandbox. Callers are responsible for splitting the destination path so

Callers 1

sandbox_sync_upFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected