mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-16 13:06:57 +08:00
set glob recursive=True
This commit is contained in:
2
tip.py
2
tip.py
@@ -25,7 +25,7 @@ if len(args) == 0:
|
||||
raise(Exception("Glob patterns need to be provided as positional arguments or through envvar 'INPUT_FILES'!"))
|
||||
|
||||
for item in args:
|
||||
items = glob(item)
|
||||
items = [fname for fname in glob(item, recursive=True) if not Path(fname).is_dir()]
|
||||
print("glob(%s)" % item, "->", items)
|
||||
files = files + items
|
||||
|
||||
|
||||
Reference in New Issue
Block a user