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

snapshot...

parent dba5d2d0
Branches
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(files_path, pattern): elif fnmatch.fnmatch(os.path.basename(files_path), 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.
Please to comment