mirror of
https://github.com/timvisee/ffsend.git
synced 2025-10-05 18:24:18 +02:00
Show metadata properties with info CLI command, check if file exists
This commit is contained in:
parent
349e62ed1c
commit
a7827197a7
7 changed files with 142 additions and 10 deletions
|
@ -52,6 +52,11 @@ impl Metadata {
|
|||
&self.name
|
||||
}
|
||||
|
||||
/// Get the file MIME type.
|
||||
pub fn mime(&self) -> &str {
|
||||
&self.mime
|
||||
}
|
||||
|
||||
/// Get the input vector
|
||||
// TODO: use an input vector length from a constant
|
||||
pub fn iv(&self) -> [u8; 12] {
|
||||
|
|
|
@ -133,6 +133,11 @@ impl RemoteFile {
|
|||
))
|
||||
}
|
||||
|
||||
/// Get the file ID.
|
||||
pub fn id(&self) -> &str {
|
||||
&self.id
|
||||
}
|
||||
|
||||
/// Get the raw secret.
|
||||
pub fn secret_raw(&self) -> &Vec<u8> {
|
||||
// A secret must have been set
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue