Skip to content
Snippets Groups Projects
Commit 2ed8aab2 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 6f2086d8
No related branches found
No related tags found
No related merge requests found
...@@ -83,7 +83,7 @@ class Files: ...@@ -83,7 +83,7 @@ class Files:
if os.path.isdir(files_path): if os.path.isdir(files_path):
for path in Path(files_path).rglob(pattern): for path in Path(files_path).rglob(pattern):
self.flist.append(path) self.flist.append(path)
elif fnmatch.fnmatch(os.path.basename(files_path), pattern): elif fnmatch.fnmatch(os.path.basename(files_path), pattern): # check if this single file matches pattern
self.flist.append(files_path) self.flist.append(files_path)
if len(self.flist) == 0: if len(self.flist) == 0:
raise GenericException('no matching files found in: ' + files_path + ' matching: ' + pattern) raise GenericException('no matching files found in: ' + files_path + ' matching: ' + pattern)
......
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