C Sharp (C#) - File IO
Identify the error in this code snippet that tries to delete a directory:
string path = "C:\\Temp";
if (Directory.Exists(path))
{
Directory.Delete(path);
Console.WriteLine("Deleted");
}