private static bool Deletable(string path) { var time = new System.IO.DirectoryInfo(path).CreationTime; if (time.AddMinutes(10) < DateTime.Now) return true; return false; }