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