Only process files (not dirs) extracted from rar

This commit is contained in:
Tyler Hallada 2021-07-15 13:35:59 -04:00
parent c7df9dec13
commit 621b98cd8c

View File

@ -255,9 +255,10 @@ pub async fn main() -> Result<()> {
if let Ok(list) = list {
for entry in list {
if let Ok(entry) = entry {
if entry.filename.ends_with(".esp")
|| entry.filename.ends_with(".esm")
|| entry.filename.ends_with(".esl")
if entry.is_file() && (
entry.filename.ends_with(".esp")
|| entry.filename.ends_with(".esm")
|| entry.filename.ends_with(".esl"))
{
plugin_file_paths.push(entry.filename);
}