Hey everybody
I want to process a large amount of files from an given directory,
the following code will just return 1000 files instead of 222001:
let output = Command::new("ls")
.current_dir(dir)
.output()
.expect("failed to execute process");
let my_string = String::from_utf8_lossy(&output.stdout);
let v: Vec<&str> = my_string.split("\n").collect();
let n: usize = v.len() - 1;
println!("{}", n);
What i do wrong?