Ejemplo n.º 1
0
 public CBFile(DirectoryInfo dir, UNCPath unc, User user)
 {
     Extension    = dir.Extension;
     Type         = "File Folder";
     Name         = dir.Name;
     Icon         = "images/icons/" + MyComputerItem.ParseForImage(dir);
     BType        = ComputerBrowser.BType.Folder;
     CreatedTime  = dir.CreationTime;
     ModifiedTime = dir.LastWriteTime;
     Path         = Converter.UNCtoDrive(dir.FullName, unc, user);
 }
Ejemplo n.º 2
0
 public FileCheckResponse(FileInfo file, UNCPath unc, User user)
 {
     Thumb = "images/icons/" + MyComputerItem.ParseForImage(file);
     if (file.Exists)
     {
         Code         = FileCheckResponseCode.Exists;
         FileName     = file.Name;
         Extension    = file.Extension;
         FilePath     = Converter.UNCtoDrive(file.FullName, unc, user);
         FileSize     = Converter.parseLength(file.Length);
         DateModified = file.LastWriteTime;
         DateCreated  = file.CreationTime;
     }
     else
     {
         Code = FileCheckResponseCode.OK;
     }
 }