Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 306 Bytes

File metadata and controls

9 lines (7 loc) · 306 Bytes

Meziantou.Framework.TemporaryDirectory

Create a unique empty folder that is deleted at the end of the scope.

using var temporaryDirectory = TemporaryDirectory.Create();
temporaryDirectory.CreateEmptyFile("test/demo.txt");
File.WriteAllText(temporaryDirectory.GetFullPath("foo.txt"), "bar");