clean up code a bit

also uhhhh 27 GiB is not a small file oopsssss
This commit is contained in:
askiiart 2024-10-27 20:37:41 -05:00
parent a2426e7b31
commit 909dca377b
Signed by untrusted user who does not match committer: askiiart
GPG key ID: EA85979611654C30

View file

@ -85,8 +85,7 @@ fn create_empty_file(path: String, size: u64) {
fn small_empty_files_generation(folder: String) { fn small_empty_files_generation(folder: String) {
for i in 1..1001 { for i in 1..1001 {
let out = File::create(format!("{folder}/{i}")).unwrap(); create_empty_file(format!("{folder}/{i}"), 1024);
out.write_all_at(&[0], 1023).unwrap();
} }
} }
@ -165,8 +164,10 @@ fn grab_datasets() {
println!("Empty 1 KiB files already generated") println!("Empty 1 KiB files already generated")
} }
if !(exists("data/small-files/100M-polygon.txt").unwrap()) { if !(exists("data/100M-polygon.txt").unwrap()) {
println!("*** Get 100M-sided regular polygon data and put it at `./data/small-files/100M-polygon.txt` ***"); println!("*** MANUAL: Get 100M-sided regular polygon data and put it at `./data/100M-polygon.txt` ***");
} else {
println!("100M-sided regular polygon data exists")
} }
} }