C Sharp (C#) - File IO
Identify the error in this code snippet:
string path = "C:\\Data";
if (Directory.Exists(path))
{
Directory.CreateDirectory(path);
}