tags:

views:

376

answers:

1

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.

http://msdn.microsoft.com/en-us/library/54a0at6s.aspx

Andy White
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