diff --git a/core.py b/core.py index 76fa20039..69dea14ff 100644 --- a/core.py +++ b/core.py @@ -330,7 +330,7 @@ def validate( ) ctx.exit(2) dataset_paths, found_formats = valid_data_file( - [str(Path(data).joinpath(fn)) for fn in os.listdir(data)] + [str(p) for p in Path(data).rglob("*") if p.is_file()] ) if len(found_formats) > 1: logger.error(