Skip to content
Myr

Allow for missing directories

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by DJRHails · committed by David Peter · parent ca2ef7b · Browse files · 1 file+8 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+8 added−1 removed

  • other:+8 added−1 removed

1 file+8 added−1 removed

modified:src/main.rs+8 added-1 removed
20 unmodified lines
21use globset::GlobBuilder;22use lscolors::LsColors;23use regex::bytes::{RegexBuilder, RegexSetBuilder};2425use crate::error::print_error;26use crate::exec::CommandTemplate;27use crate::exit_codes::ExitCode;28use crate::filetypes::FileTypes;29#[cfg(unix)]
60 unmodified lines
90 path_buffer.to_string_lossy()91 ))92 }93 })93 .collect::<Result<Vec<_>>>()?,94 .inspect(|res| {95 if let Err(e) = res {96 print_error(format!("{}", e))97 }98 })99 .filter_map(Result::ok)100 .collect::<Vec<_>>(),101 None => vec![current_directory.to_path_buf()],102 };103104 if matches.is_present("absolute-path") {
320 unmodified lines