asciidoc2html: Check files recursively with --all.
This commit is contained in:
parent
4db75a9595
commit
91fcac4735
@ -77,7 +77,11 @@ def main(colors=False):
|
||||
except FileExistsError:
|
||||
pass
|
||||
if args.all:
|
||||
for src in glob.glob('**/*.asciidoc') + glob.glob('*.asciidoc'):
|
||||
for root, _dirs, files in os.walk(os.getcwd()):
|
||||
for filename in files:
|
||||
if os.path.splitext(filename)[1] != '.asciidoc':
|
||||
continue
|
||||
src = os.path.join(root, filename)
|
||||
parts = [args.all[0]]
|
||||
dirname = os.path.dirname(src)
|
||||
if dirname:
|
||||
|
Loading…
Reference in New Issue
Block a user