Describe the bug
When running New-AsBuiltReport, if the path specified for -OutputPath does not exist, there is no check for this and the document will fail to be saved after the report function has completed.
To Reproduce
Steps to reproduce the behavior:
Run New-AsBuiltReport and specify a folder for -OutputPath that does not exist
Expected behavior
The function should check for the existance of the folder specified as the OutputPath and if it does not exist, error and break before running the report function.
Screenshots
If applicable, add screenshots to help explain your problem.
System (please provide the following information about the system from which you are trying to generate a report):
OS: Windows 1-
Windows PowerShell version: 5.1
Vendor PowerShell Module name and version: Not relevant
AsBuiltReport.Core module version: 1.0.0
AsBuiltReport module name and version: Not relevant
Describe the bug When running New-AsBuiltReport, if the path specified for -OutputPath does not exist, there is no check for this and the document will fail to be saved after the report function has completed.
To Reproduce Steps to reproduce the behavior:
Expected behavior The function should check for the existance of the folder specified as the OutputPath and if it does not exist, error and break before running the report function.
Screenshots If applicable, add screenshots to help explain your problem.
System (please provide the following information about the system from which you are trying to generate a report):