Treatment composition
fs/path::composition
Inputs
⇥ path: Stream<string>
Outputs
↦ extension: Stream<Option<string>>
↦ file_name: Stream<Option<string>>
↦ file_stem: Stream<Option<string>>
↦ parent: Stream<Option<string>>
Gives compition of paths.
For each streamed path, the outputs are filled with values:
extensioncontains the part of the name after last., else is none;file_namecontains the full name of the file (binfor/usr/bin/,bar.txtforfoo/bar.txt,etcforetc/./, empty for/);file_stemcontains the part of the name before last., or full name if starting with.with none in, or not containing any.at all;parentcontains the path up to the parent of the designated component, else is empty (/usrfor/usr/bin, empty for/).