Function std::os::split_paths[src]
pub fn split_paths<T: BytesContainer>(unparsed: T) -> Vec<Path>
Parse a string or vector according to the platform's conventions
for the PATH environment variable and return a Vec
Example
fn main() { use std::os; let key = "PATH"; match os::getenv(key) { Some(paths) => { for path in os::split_paths(paths).iter() { println!("'{}'", path.display()); } } None => println!("{} is not defined in the environnement.", key) } }use std::os; let key = "PATH"; match os::getenv(key) { Some(paths) => { for path in os::split_paths(paths).iter() { println!("'{}'", path.display()); } } None => println!("{} is not defined in the environnement.", key) }