Only process files (not dirs) extracted from rar
This commit is contained in:
parent
c7df9dec13
commit
621b98cd8c
@ -255,9 +255,10 @@ pub async fn main() -> Result<()> {
|
|||||||
if let Ok(list) = list {
|
if let Ok(list) = list {
|
||||||
for entry in list {
|
for entry in list {
|
||||||
if let Ok(entry) = entry {
|
if let Ok(entry) = entry {
|
||||||
if entry.filename.ends_with(".esp")
|
if entry.is_file() && (
|
||||||
|
entry.filename.ends_with(".esp")
|
||||||
|| entry.filename.ends_with(".esm")
|
|| entry.filename.ends_with(".esm")
|
||||||
|| entry.filename.ends_with(".esl")
|
|| entry.filename.ends_with(".esl"))
|
||||||
{
|
{
|
||||||
plugin_file_paths.push(entry.filename);
|
plugin_file_paths.push(entry.filename);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user