Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!

Idiom #139 Create temp directory

Create a new temporary folder on filesystem, for writing.

using System.IO;
string newDir = Path.GetTempPath() + Guid.NewGuid();
Directory.CreateDirectory(newDir);

New implementation...
< >
programming-idioms.org