excluding Diva files from name parsing
This commit is contained in:
parent
12051045cc
commit
7ef9b77264
1 changed files with 1 additions and 0 deletions
|
|
@ -57,6 +57,7 @@ def extract_names(dir_in, is_global):
|
|||
f
|
||||
for f in glob(os.path.join(dir_in, "**/*.tsv"), recursive=True)
|
||||
if re.search(r"[0-9]{9}\.tsv$", f)
|
||||
and f"{os.path.sep}Diva{os.path.sep}" not in f
|
||||
]
|
||||
if len(files) == 0:
|
||||
raise FileNotFoundError("No valid files found in directory: " + dir_in)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue