|
|
|
@ -87,6 +87,14 @@ def _parse_recursive(source, outfile, quiet):
@@ -87,6 +87,14 @@ def _parse_recursive(source, outfile, quiet):
|
|
|
|
|
child_outfile = DEFAULT_OUTPUT_FILENAME |
|
|
|
|
source_path = Path(source) |
|
|
|
|
folders = (i for i in source_path.iterdir() if i.is_dir()) |
|
|
|
|
collection = (_parse_one_folder(f, child_outfile, quiet) for f in folders) |
|
|
|
|
collected_data = pandas.concat(collection, ignore_index=True).reset_index() |
|
|
|
|
non_hidden = (i for i in folders if not i.name.startswith(".")) |
|
|
|
|
collection = ( |
|
|
|
|
_parse_one_folder(f, child_outfile, quiet) for f in non_hidden |
|
|
|
|
) |
|
|
|
|
try: |
|
|
|
|
collected_data = pandas.concat( |
|
|
|
|
collection, ignore_index=True |
|
|
|
|
).reset_index() |
|
|
|
|
_output(collected_data, source_path, outfile) |
|
|
|
|
except ValueError as e: |
|
|
|
|
print(str(e)) |
|
|
|
|