mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 01:37:51 -06:00
Allow for wildcard with printer-linter
This commit is contained in:
parent
3da747a59f
commit
6b810fbd6c
1 changed files with 4 additions and 1 deletions
|
@ -113,8 +113,11 @@ def extractFilePaths(paths: List[Path]) -> List[Path]:
|
||||||
for path in paths:
|
for path in paths:
|
||||||
if path.is_dir():
|
if path.is_dir():
|
||||||
file_paths.extend(path.rglob("**/*"))
|
file_paths.extend(path.rglob("**/*"))
|
||||||
else:
|
if not path.match("*"):
|
||||||
file_paths.append(path)
|
file_paths.append(path)
|
||||||
|
else:
|
||||||
|
file_paths.extend(Path(*path.parts[:-1]).glob(path.parts[-1]))
|
||||||
|
continue
|
||||||
|
|
||||||
return file_paths
|
return file_paths
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue