mirror of
https://github.com/FliegendeWurst/ripgrep-all.git
synced 2024-11-24 12:24:56 +00:00
zip print bytes pretty
This commit is contained in:
parent
7b70188d77
commit
144b554f0d
@ -1,5 +1,5 @@
|
|||||||
use super::*;
|
use super::*;
|
||||||
use crate::preproc::rga_preproc;
|
use crate::{preproc::rga_preproc, print_bytes};
|
||||||
use ::zip::read::ZipFile;
|
use ::zip::read::ZipFile;
|
||||||
use anyhow::*;
|
use anyhow::*;
|
||||||
use lazy_static::lazy_static;
|
use lazy_static::lazy_static;
|
||||||
@ -65,12 +65,12 @@ impl FileAdapter for ZipAdapter {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
debug!(
|
debug!(
|
||||||
"{}{}|{}: {} bytes ({} bytes packed)",
|
"{}{}|{}: {} ({} packed)",
|
||||||
line_prefix,
|
line_prefix,
|
||||||
filepath_hint.to_string_lossy(),
|
filepath_hint.to_string_lossy(),
|
||||||
file.name(),
|
file.name(),
|
||||||
file.size(),
|
print_bytes(file.size() as f64),
|
||||||
file.compressed_size()
|
print_bytes(file.compressed_size() as f64)
|
||||||
);
|
);
|
||||||
let line_prefix = &format!("{}{}: ", line_prefix, file.name());
|
let line_prefix = &format!("{}{}: ", line_prefix, file.name());
|
||||||
rga_preproc(AdaptInfo {
|
rga_preproc(AdaptInfo {
|
||||||
|
Loading…
Reference in New Issue
Block a user