AsBuiltReport / AsBuiltReport.Core

Repository for AsBuiltReport core module
https://www.asbuiltreport.com
MIT License
54 stars 23 forks source link

New-AsBuiltReport Does Not Check if the OutputPath Exists Before running #14

Closed mattallford closed 5 years ago

mattallford commented 5 years ago

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:

  1. 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. image

System (please provide the following information about the system from which you are trying to generate a report):