INNER CODE UNIT · Rust

run

ouch-org/ouch · src/commands/mod.rs:55

pub fn run(args: CliArgs, question_policy: QuestionPolicy, file_visibility_policy: FileVisibilityPolicy) -> Result<()> {
    // No global pool here because Landlock only confines threads created after it is applied
    // Decompression builds its pool after the sandbox so the workers are confined

    match args.cmd {
        Subcommand::Compress {
            files,
            output: output_path,
            hidden: _,
            gitignore,
            level,
            fast,
            slow,
            follow_symlinks,
        } => {
            // After cleaning, if there are no input files left, exit
            if files.is_empty() {
                return Err(FinalError::with_title("No files to compress").into());

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…