title: Create folder if path does not exist?
body: <p>I am using the code below to save a pdf file to a network location. Is it possible that if the path does not exist that it creates the folder? The code below is just adding the username to the file name when I need it to create the username's folder?</p>
  
  <pre><code>    Dim Doc1 As New Document
      Dim path As String = "\\Servername\PDFs\" + Session("Username")
  
  
      Dim myUniqueFileName = String.Format("{0}.pdf", random)
      Dim combinedData As String = path &amp; myUniqueFileName
      PdfWriter.GetInstance(Doc1, New FileStream(path &amp; myUniqueFileName, FileMode.Create))
      Doc1.Open()
      Dim test As String
      test = Session("PDF")
      Doc1.Add(New Paragraph(test))
  
      Doc1.Close()
  </code></pre>