Does anyone know what's the .NET/C# equivalent of Delphi's forceDirectory function ? For who don't know delphi, forceDirectory creates all the directories in a given path if it doesn't exist.
+17
A:
I believe Directory.CreateDirectory(path) automatically creates all the directories/subdirectories specified in the path.
Andy White
2009-06-05 07:09:05
You believe correctly, from the Remarks: "Any and all directories specified in path are created". The restrictions nd conditions are the same as for ForceDirectory
Henk Holterman
2009-06-05 07:18:07