| Crates.io | gh-file-curler |
| lib.rs | gh-file-curler |
| version | 2.4.0 |
| created_at | 2024-02-14 23:07:38.118354+00 |
| updated_at | 2024-04-02 21:02:19.522147+00 |
| description | Grabs only the files from a Github repo, without the Git history |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1140302 |
| size | 36,019 |
Grabs only the files from a Github repo, without the Git history
use gh_file_curler::fetch;
use std::fs;
fn main() {
fs::remove_dir_all("out").unwrap_or(());
fs::create_dir("out").unwrap();
let the = fetch_dir("berrymot", "gh-file-curler", &[""], true, "TOKEN")
.unwrap();
the.clone().write_to("out");
println!("{} files", the.0.len());
}