(local_path: &Path)
| 1049 | } |
| 1050 | |
| 1051 | fn 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 | /// |
no test coverage detected