Lucene.Net.Util._TestUtil.RmDir C# (CSharp) Метод

RmDir() публичный статический Метод

public static RmDir ( System dir ) : void
dir System
Результат void
        public static void RmDir(System.IO.DirectoryInfo dir)
        {
            RmDir(dir.FullName);
            //bool tmpBool;
            //if (System.IO.File.Exists(dir.FullName))
            //    tmpBool = true;
            //else
            //    tmpBool = System.IO.Directory.Exists(dir.FullName);
            //if (tmpBool)
            //{
            //    System.IO.FileInfo[] files = FileSupport.GetFiles(dir);
            //    for (int i = 0; i < files.Length; i++)
            //    {
            //        bool tmpBool2;
            //        if (System.IO.File.Exists(files[i].FullName))
            //        {
            //            System.IO.File.Delete(files[i].FullName);
            //            tmpBool2 = true;
            //        }
            //        else if (System.IO.Directory.Exists(files[i].FullName))
            //        {
            //            System.IO.Directory.Delete(files[i].FullName);
            //            tmpBool2 = true;
            //        }
            //        else
            //            tmpBool2 = false;
            //        if (!tmpBool2)
            //        {
            //            throw new System.IO.IOException("could not delete " + files[i]);
            //        }
            //    }
            //    bool tmpBool3;
            //    if (System.IO.File.Exists(dir.FullName))
            //    {
            //        System.IO.File.Delete(dir.FullName);
            //        tmpBool3 = true;
            //    }
            //    else if (System.IO.Directory.Exists(dir.FullName))
            //    {
            //        System.IO.Directory.Delete(dir.FullName);
            //        tmpBool3 = true;
            //    }
            //    else
            //        tmpBool3 = false;
            //    bool generatedAux = tmpBool3;
            //}
        }