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