pub fn component_iter(path: &Path) -> impl DoubleEndedIterator<Item = &str>
Iterates over all path components.
path: The current path.
path
use std::path::Path; use virtual_fs::util::component_iter; itertools::assert_equal( component_iter(Path::new("../many/files/and/directories/")), vec!["many", "files", "and", "directories"], );