(path: &Path)
| 735 | } |
| 736 | |
| 737 | fn 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 |