diff --git a/src/main.rs b/src/main.rs index a531843..c7e062f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1522,10 +1522,10 @@ async fn compile(config:CompileConfig)->AResult<()>{ (||async move{//error catcher so I can use ? let ret2=if let Some(entry)=dir2.next_entry().await?{ //cull early even if supporting things with identical names is possible - if !exist_names.contains(entry.file_name().to_str().unwrap()){ - TooComplicated::Value(entry) - }else{ + if exist_names.contains(entry.file_name().to_str().unwrap()){ TooComplicated::Skip + }else{ + TooComplicated::Value(entry) } }else{ TooComplicated::Stop