public static void CreateParentDirectoryForFile(string path) { CreateNonExistentDirectory(Directory.GetParent(path).FullName); }