<PackageReference Include="Relativity.Server.Import.SDK" Version="2.9.2" />

FileInspector

public class FileInspector : IFileInspector
using OutsideIn; using System.IO; namespace kCura.WinEDDS { public class FileInspector : IFileInspector { private readonly Exporter _exporter; public FileInspector() { _exporter = OutsideIn.NewLocalExporter(); } public FileFormat GetFileFormatByFilePath(string filePath) { return _exporter.Identify(new System.IO.FileInfo(filePath)); } FileFormat IFileInspector.GetFileFormatByFilePath(string filePath) { return this.GetFileFormatByFilePath(filePath); } } }