aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel <kingdread@gmx.de>2019-02-16 01:09:29 +0100
committerDaniel <kingdread@gmx.de>2019-02-16 01:09:29 +0100
commit2fb14e9e5c5e48c3231f6d4aa324917d0dd3ccf7 (patch)
tree4ea1083ae251d7e2ac3222e3227def2998d5e342
parentc685546765513abd32b9b03cdf5dabc42d96f2d2 (diff)
downloadraidgrep-2fb14e9e5c5e48c3231f6d4aa324917d0dd3ccf7.tar.gz
raidgrep-2fb14e9e5c5e48c3231f6d4aa324917d0dd3ccf7.tar.bz2
raidgrep-2fb14e9e5c5e48c3231f6d4aa324917d0dd3ccf7.zip
add support for .zevtc files
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 22d1ab4..a77a952 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -238,7 +238,7 @@ fn is_log_file(entry: &DirEntry) -> bool {
entry
.file_name()
.to_str()
- .map(|n| n.ends_with(".evtc") || n.ends_with(".evtc.zip"))
+ .map(|n| n.ends_with(".evtc") || n.ends_with(".evtc.zip") || n.ends_with(".zevtc"))
.unwrap_or(false)
}
@@ -270,7 +270,7 @@ fn search_log(entry: &DirEntry, opt: &Opt) -> Result<Option<LogResult>, RuntimeE
let raw = if entry
.file_name()
.to_str()
- .map(|n| n.ends_with(".zip"))
+ .map(|n| n.ends_with(".zip") || n.ends_with(".zevtc"))
.unwrap_or(false)
{
evtclib::raw::parse_zip(&mut input)