Tag Archives: create intermediate directories

Create a directory and intermediate directories in C#

The System.IO.Directory class’s CreateDirectory method creates a directory. If the directory’s path includes missing intermediate directories, it creates them, too. For example, if C:\DirA is empty and you use CreateDirectory to create C:\DirA\DirB\DirC, then the method automatically creates DirB as … Continue reading

Posted in directories | Tagged , , , , , , , , , | 1 Comment