How can I list all the files of a directory in Rust? I am looking for the equivalent of the following Python code.
files = os.listdir(\'./\')
You could also use glob, which is expressly for this purpose.
extern crate glob; use self::glob::glob; let files:Vec = glob("*").collect();