TempTextFileDeletor
using Relativity.DataExchange.Io;
using System.Collections.Generic;
namespace kCura.WinEDDS
{
public class TempTextFileDeletor
{
private IEnumerable<string> _filepaths;
public TempTextFileDeletor(IEnumerable<string> filePaths)
{
_filepaths = filePaths;
if (_filepaths == null)
_filepaths = new string[0];
}
public void DeleteFiles()
{
foreach (string filepath in _filepaths) {
if (!string.IsNullOrEmpty(filepath))
FileSystem.Instance.File.Delete(filepath);
}
}
}
}