public ICollection <PackagedFileInfo> ListFiles() { if (_filter != null) { return(_files.FindAll(x => _filter.IsPassedThrough(x.FileFullPath.ToString()))); } return(_files); }
public static bool LogIfFilteredOut(string fileName, IFileFilter filter, ITaskContext taskContext) { if (filter != null && false == filter.IsPassedThrough(fileName)) { taskContext.WriteDebug("File '{0}' has been filtered out.", fileName); return(false); } return(true); }
public static bool LogIfFilteredOut(string fileName, IFileFilter filter, ILogger logger) { if (filter != null && false == filter.IsPassedThrough(fileName)) { logger.Log("File '{0}' has been filtered out.", fileName); return(false); } return(true); }
public static bool LogIfFilteredOut(string fileName, IFileFilter filter, ITaskContextInternal taskContext, bool logFiles) { if (filter != null && !filter.IsPassedThrough(fileName)) { if (logFiles) { taskContext.LogInfo($"File '{fileName}' has been filtered out."); } return(false); } return(true); }
public bool IsPassedThrough(string fileName) { return(!_filter.IsPassedThrough(fileName)); }