Beispiel #1
0
        private static bool Deletable(string path)
        {
            var time = new System.IO.DirectoryInfo(path).CreationTime;

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