Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
davidchalifoux committed Nov 8, 2024
1 parent ccb1839 commit e16c57c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/put/files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,16 +335,11 @@ pub fn download(
Ok(())
}

pub fn upload(
api_token: &String,
path: &Path,
parent_id: Option<&String>,
curl_args: &Vec<String>,
) {
pub fn upload(api_token: &String, path: &Path, parent_id: Option<&String>, curl_args: &[String]) {
println!("Uploading: {}\n", path.to_string_lossy());

ProcessCommand::new("curl")
.args(curl_args.clone())
.args(curl_args)
.arg("-H")
.arg(format!("Authorization: Bearer {}", api_token))
.arg("-F")
Expand Down

0 comments on commit e16c57c

Please sign in to comment.