Allow specifying an output file or directory when downloading [WIP]

This commit is contained in:
timvisee 2018-03-29 22:50:43 +02:00
parent 649190b17a
commit 8259106c17
No known key found for this signature in database
GPG key ID: 109CBA0BF74036C2
5 changed files with 109 additions and 22 deletions

View file

@ -47,6 +47,11 @@ impl Metadata {
serde_json::to_string(&self).unwrap()
}
/// Get the file name.
pub fn name(&self) -> &str {
&self.name
}
/// Get the input vector
// TODO: use an input vector length from a constant
pub fn iv(&self) -> [u8; 12] {