(source: UploadSource)
| 2199 | } |
| 2200 | |
| 2201 | fn upload_archive_paths(source: UploadSource) -> Vec<String> { |
| 2202 | let mut paths = upload_archive_entries(source) |
| 2203 | .into_iter() |
| 2204 | .map(|entry| entry.path) |
| 2205 | .collect::<Vec<_>>(); |
| 2206 | paths.sort(); |
| 2207 | paths |
| 2208 | } |
| 2209 | |
| 2210 | #[test] |
| 2211 | fn file_list_archive_preserves_directory_prefix_when_requested() { |