Skip to content
Snippets Groups Projects
Commit 6f2086d8 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent dba5d2d0
No related branches found
No related tags found
No related merge requests found
......@@ -83,7 +83,7 @@ class Files:
if os.path.isdir(files_path):
for path in Path(files_path).rglob(pattern):
self.flist.append(path)
elif fnmatch.fnmatch(files_path, pattern):
elif fnmatch.fnmatch(os.path.basename(files_path), pattern):
self.flist.append(files_path)
if len(self.flist) == 0:
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