1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#![warn(clippy::all)]
#![cfg_attr(coverage, feature(no_coverage))]
mod authorizer;
mod dropbox;
#[cfg_attr(coverage, no_coverage)]
mod hyper_client;
use acick_util::abs_path;
use acick_util::web;
pub use dropbox_sdk::files::FileMetadata;
pub use authorizer::{DbxAuthorizer, Token};
pub use dropbox::Dropbox;
pub type Error = anyhow::Error;
pub type Result<T> = anyhow::Result<T>;
fn convert_dbx_err(err: dropbox_sdk::Error) -> Error {
Error::msg(err.to_string())
}