示例#1
0
 internal EntryInfo(IndexNode node)
 {
     _id         = node.ID;
     _fileName   = node.FileName + "." + node.FileExtension;
     _mimeType   = MimeTypeConverter.Convert(node.FileExtension);
     _fileLength = node.FileLength;
 }
示例#2
0
 internal EntryInfo(string fileName)
 {
     _id         = Guid.NewGuid();
     _fileName   = Path.GetFileName(fileName);
     _mimeType   = MimeTypeConverter.Convert(Path.GetExtension(_fileName));
     _fileLength = 0;
 }