コード例 #1
0
 public FileSystemDescription(string fileName, FileSystemInfo info)
 {
     Name = fileName;
     if (info is DirectoryInfo)
     {
         IsDirectory = true;
         Size = 0x1000;
     }
     else if (info is FileInfo)
     {
         IsDirectory = false;
         Size = info.CastTo<FileInfo>().Length;
     }
     CreateTime = info.CreationTime;
     AccessTime = info.LastAccessTime;
     ModifyTime = info.LastWriteTime;
 }