pub fn parse(input: &str) -> Vec<String>Expand description
Split input as vector of string according to {a,b,c} schema.
Warning : in some specific case, result can return characters which are not
supported by O.S. paths, like '{' or ','.
Read some tests
in order to know more about this cases.
ยงExample
assert_eq!(
multipath::parse("/home/{user,admin}/{Desktop,Download}/file.txt"),
vec![
"/home/user/Desktop/file.txt",
"/home/user/Download/file.txt",
"/home/admin/Desktop/file.txt",
"/home/admin/Download/file.txt",
]
);