Working state (mostly)
This commit is contained in:
@@ -90,7 +90,9 @@ def get_exam_file_content(folder_path, mode, label):
|
||||
return direct_file.read_text(encoding="utf-8")
|
||||
|
||||
# 2. Search for grouped files: prefix[suffix1,suffix2,...]
|
||||
for file_path in target_dir.glob("*[*]"):
|
||||
for file_path in target_dir.iterdir():
|
||||
if not file_path.is_file():
|
||||
continue
|
||||
name = file_path.name
|
||||
if "[" in name and name.endswith("]"):
|
||||
# Split 'prefix[suffixes]' -> 'prefix', 'suffixes'
|
||||
|
||||
Reference in New Issue
Block a user