DestinationPath
using kCura.WinEDDS;
using kCura.WinEDDS.Exceptions;
using System.IO;
using System.Text;
namespace Relativity.DataExchange.Export.VolumeManagerV2.Metadata.Paths
{
public abstract class DestinationPath : IDestinationPath
{
protected readonly ExportFile ExportSettings;
public abstract string Path { get; }
public abstract Encoding Encoding { get; }
public abstract FileWriteException.DestinationFile DestinationFileType { get; }
protected DestinationPath(ExportFile exportSettings)
{
ExportSettings = exportSettings;
}
protected string FormatPath(string extension)
{
return System.IO.Path.Combine(ExportSettings.FolderPath, ExportSettings.LoadFilesPrefix + "_export" + extension);
}
}
}