public static IEnumerable<FileInfo> CleanUpAbandonedFiles()
{
var assembly = new Caller().Methods.First().Module.Assembly;
var path = PathUtilities.GetDirectoryForCaller(1);
var list = ApprovalMaintenance.FindAbandonedFiles(path,assembly);
foreach (var fileInfo in list)
{
fileInfo.Delete();
}
return list;
}
public static IEnumerable<FileInfo> FindAbandonedFiles(string path)