Skip to main content

parse_ls_output

Function parse_ls_output 

Source
pub fn parse_ls_output(
    output: &str,
    show_hidden: bool,
    sort: BrowserSort,
) -> Vec<FileEntry>
Expand description

Parse ls -lhAL output into FileEntry list. With -L, symlinks are dereferenced so their target type is shown directly. Recognizes directories via ‘d’ permission prefix. Skips the “total” line. Broken symlinks are omitted by ls -L (they cannot be transferred anyway).