clean up code a bit
also uhhhh 27 GiB is not a small file oopsssss
This commit is contained in:
parent
a2426e7b31
commit
909dca377b
1 changed files with 5 additions and 4 deletions
|
@ -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")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue