Skip to content
Snippets Groups Projects
Commit 16e24bf0 authored by Lan Dam's avatar Lan Dam
Browse files

add check path to read folder

parent 5e074912
No related branches found
No related tags found
1 merge request!152intergrate rt130
Pipeline #2816 failed with stage
in 2 minutes and 56 seconds
......@@ -129,6 +129,8 @@ class RT130(GeneralData):
total = sum([len(files) for _, _, files in os.walk(self.dir)])
for folder in folders:
if not os.path.isdir(folder):
raise ProcessingDataError(f"Path '{folder}' not exist")
for path, subdirs, files in os.walk(folder):
for file_name in files:
if self.creator_thread.isInterruptionRequested():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment