|
|
@ -10,6 +10,7 @@ use std::{
|
|
|
|
path::Path,
|
|
|
|
path::Path,
|
|
|
|
process::Command,
|
|
|
|
process::Command,
|
|
|
|
str,
|
|
|
|
str,
|
|
|
|
|
|
|
|
sync::atomic::{AtomicBool, Ordering as AtomicOrdering},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
use threadpool::ThreadPool;
|
|
|
|
use threadpool::ThreadPool;
|
|
|
|
|
|
|
|
|
|
|
@ -23,8 +24,6 @@ const MAX_PEEK_SIZE: usize = 1024;
|
|
|
|
/// Files not displayed in directory listings.
|
|
|
|
/// Files not displayed in directory listings.
|
|
|
|
const IGNORED_FILES: [&str; 3] = ["header.gph", "footer.gph", ".reverse"];
|
|
|
|
const IGNORED_FILES: [&str; 3] = ["header.gph", "footer.gph", ".reverse"];
|
|
|
|
|
|
|
|
|
|
|
|
use std::sync::atomic::{AtomicBool, Ordering as AtomicOrdering};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// Whether to print info!() messages to stdout.
|
|
|
|
/// Whether to print info!() messages to stdout.
|
|
|
|
/// Defaults to true.
|
|
|
|
/// Defaults to true.
|
|
|
|
static SHOW_INFO: AtomicBool = AtomicBool::new(true);
|
|
|
|
static SHOW_INFO: AtomicBool = AtomicBool::new(true);
|
|
|
|