Don't try to parse dirs after extracting with 7z
This commit is contained in:
parent
fe908799d7
commit
afefc8fef3
@ -43,6 +43,7 @@ pub async fn extract_with_7zip(
|
|||||||
.contents_first(true)
|
.contents_first(true)
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.filter_entry(|e| {
|
.filter_entry(|e| {
|
||||||
|
if e.file_type().is_dir() { return false }
|
||||||
if let Some(extension) = e.path().extension() {
|
if let Some(extension) = e.path().extension() {
|
||||||
extension == "esp" || extension == "esm" || extension == "esl"
|
extension == "esp" || extension == "esm" || extension == "esl"
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user