Skip to main content

parts

Function parts 

Source
pub fn parts(path: &str, fmt: PathFormat) -> Vec<String>
Expand description

Split a path into its components (like Python’s PurePath.parts).

For POSIX: “/mnt/renders/scene.exr” → [“/”, “mnt”, “renders”, “scene.exr”] For Windows: “C:\mnt\file” → [“C:", “mnt”, “file”] For Windows: “\mnt\file” → [“", “mnt”, “file”]