We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cf0a45 commit 8e234a8Copy full SHA for 8e234a8
src/admin/upload_index.rs
@@ -35,10 +35,11 @@ pub fn run(opts: Opts) -> anyhow::Result<()> {
35
let pb = ProgressBar::new(files.len() as u64);
36
pb.set_style(ProgressStyle::with_template("{bar:60} ({pos}/{len}, ETA {eta})").unwrap());
37
38
- for file in files.iter().progress_with(pb) {
+ for file in files.iter().progress_with(pb.clone()) {
39
let crate_name = file.file_name().unwrap().to_str().unwrap();
40
let path = repo.index_file(crate_name);
41
if !path.exists() {
42
+ pb.suspend(|| println!("skipping file `{}`", crate_name));
43
continue;
44
}
45
0 commit comments