System.IO.Directory.CreateDirectory() will create all directories and subdirectories in a specified path, should they not already exist.
You can call it, passing the path, to ensure the folder structure is created prior to writing your file.
System.IO.Directory.CreateDirectory() will create all directories and subdirectories in a specified path, should they not already exist.
You can call it, passing the path, to ensure the folder structure is created prior to writing your file.