File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -53,9 +53,17 @@ def select_files_manually(gui_instance):
5353 gui_instance .tr ("Fichiers Python (*.py)" , "Python Files (*.py)" ),
5454 )
5555 if files :
56+ ark_config = load_ark_config (workspace_dir ) if workspace_dir else {}
57+ exclusion_patterns = ark_config .get ("exclusion_patterns" , [])
5658 valid_files = []
59+ excluded = 0
5760 for f in files :
5861 if os .path .commonpath ([f , workspace_dir ]) == workspace_dir :
62+ if workspace_dir and should_exclude_file (
63+ f , workspace_dir , exclusion_patterns
64+ ):
65+ excluded += 1
66+ continue
5967 valid_files .append (f )
6068 else :
6169 QMessageBox .warning (
@@ -67,13 +75,18 @@ def select_files_manually(gui_instance):
6775 f"Le fichier { f } est en dehors du workspace et sera ignoré." ,
6876 f"The file { f } is outside the workspace and will be ignored." ,
6977 ),
70- )
78+ )
7179 if valid_files :
7280 gui_instance .selected_files = valid_files
7381 gui_instance .log_i18n (
7482 f"✅ { len (valid_files )} fichier(s) sélectionné(s) manuellement.\n " ,
7583 f"✅ { len (valid_files )} file(s) selected manually.\n " ,
7684 )
85+ if excluded > 0 :
86+ gui_instance .log_i18n (
87+ f"⏩ Exclusion appliquée : { excluded } fichier(s) ignoré(s) (ARK_Main_Config.yml)." ,
88+ f"⏩ Exclusion applied: { excluded } file(s) ignored (ARK_Main_Config.yml)." ,
89+ )
7790 if hasattr (gui_instance , "update_command_preview" ):
7891 gui_instance .update_command_preview ()
7992
You can’t perform that action at this time.
0 commit comments