pub fn flatten<P>(path: P) -> Result<()> where
P: AsRef<Path>,
Flattens a directory recursively, moving all nested files into path
.
This will fail if path
is not a directory or if some intermediate
I/O operation fails.
flatten("./music_lib_from_2001").unwrap();