private ShouldCopy ( string filePath ) : bool | ||
filePath | string | |
Résultat | bool |
private bool ShouldCopy(string filePath)
{
foreach (var excludedFolder in _exludedFolders)
{
if (filePath.StartsWith(excludedFolder, StringComparison.CurrentCultureIgnoreCase))
return false;
}
var extension = Path.GetExtension(filePath);
return _exludedExtensions.Contains(extension.ToLower()) == false;
}