diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-02-10 14:40:38 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-02-10 14:40:38 -0800 |
commit | b85353d4b6c8ff6fd71c31b3bd618c76afcd6a39 (patch) | |
tree | 79b920bb7a197a9a7fa2d6be446c05da4349c6ae /fatcat-cli/src/main.rs | |
parent | 32388ecb860949fe72941cd50a65964dc9c18e1e (diff) | |
download | fatcat-cli-b85353d4b6c8ff6fd71c31b3bd618c76afcd6a39.tar.gz fatcat-cli-b85353d4b6c8ff6fd71c31b3bd618c76afcd6a39.zip |
download: filenames as specifiers, not sha1
Diffstat (limited to 'fatcat-cli/src/main.rs')
-rw-r--r-- | fatcat-cli/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fatcat-cli/src/main.rs b/fatcat-cli/src/main.rs index 7294735..ced35b4 100644 --- a/fatcat-cli/src/main.rs +++ b/fatcat-cli/src/main.rs @@ -528,7 +528,7 @@ fn run(opt: Opt) -> Result<()> { resp => Err(anyhow!("{:?}", resp)) .with_context(|| format!("API GET failed: {:?}", ident)), }?; - download_file(&file_entity, output_path) + download_file(&file_entity, &file_entity.specifier(), output_path) } other => Err(anyhow!("Don't know how to download: {:?}", other)), }?; |