Esempio n. 1
0
 public Dir(DirectoryInfo _dinfo)
 {
     if (_dinfo.Exists)
     {
         CurrentDirInfo = _dinfo;
         Info           = new DirInfo(CurrentDirInfo);
     }
     else
     {
         throw new Exception("Directory not found");
     }
 }
Esempio n. 2
0
 public Dir(String _dpath)
 {
     if (Directory.Exists(_dpath))
     {
         CurrentDirInfo = new DirectoryInfo(_dpath);
         Info           = new DirInfo(CurrentDirInfo);
     }
     else
     {
         throw new Exception("Directory not found");
     }
 }
Esempio n. 3
0
 public File(FileInfo _finfo)
 {
     if (_finfo.Exists)
     {
         CurrentFileInfo = _finfo;
         Info            = new FilesInfo(CurrentFileInfo);
     }
     else
     {
         throw new Exception("File not found");
     }
 }