Closed jackpoz closed 3 years ago
None
Currently a NullDereference exception is thrown if Add-PnPListFoldersToProvisioningTemplate is called with a path that doesn't exist:
Add-PnPListFoldersToProvisioningTemplate
This PR handles the cases by throwing a FileNotFoundException with the path of the file:
Steps to reproduce the issue:
Connect-PnPOnline "https://<tenant>.sharepoint.com/sites/<site>" Add-PnPListFoldersToProvisioningTemplate -Path "SiteTemplate.pnp" -List "List name" -Recursive
Thank you!
Type
Related Issues?
None
What is in this Pull Request ?
Currently a NullDereference exception is thrown if![image](https://user-images.githubusercontent.com/1153754/94298008-b2840e00-ff65-11ea-88f8-46c9a561e090.png)
Add-PnPListFoldersToProvisioningTemplate
is called with a path that doesn't exist:This PR handles the cases by throwing a FileNotFoundException with the path of the file:![image](https://user-images.githubusercontent.com/1153754/94297986-ab5d0000-ff65-11ea-93bd-36fee8955eca.png)
Steps to reproduce the issue: