We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d94c952 + 4007e21 commit 10543f3Copy full SHA for 10543f3
src/vuegen/report_generator.py
@@ -60,6 +60,14 @@ def get_report(
60
output_dir = Path(".")
61
else:
62
output_dir = Path(output_dir)
63
+ if output_dir.is_file():
64
+ raise ValueError(
65
+ "The output_dir parameter should be a directory, not a file."
66
+ )
67
+ if not output_dir.exists():
68
+ logger.info("Creating output directory: %s", output_dir)
69
+ output_dir.mkdir(parents=True, exist_ok=True)
70
+
71
# Initialize logger only if it's not provided
72
if logger is None:
73
_folder = "logs"
0 commit comments