Amazon.KinesisTap.Core/Sources/DirectorySource.cs
/// <summary>
/// Determine whether should exclude file based on file extension defined in _excludedExtensions
/// E.g. .zip, .gz
/// </summary>
/// <param name="filePath">Path to the file</param>
/// <returns>Whether the file should be excluded</returns>
Determine whether should exclude file based on file extension defined in _excludedExtensions
E.g.
Determine whether should exclude file based on file extension defined in _excludedExtensions E . g .
private static bool ShouldExclude(string filePath)
        {
            string extension = Path.GetExtension(filePath).ToLower();
            return _excludedExtensions.Any(ext => ext.Equals(extension));
        }
private static bool ShouldExclude ( string filePath ) { string extension = Path . GetExtension ( filePath ) . ToLower ( ) ; return _excludedExtensions . Any ( ext => ext . Equals ( extension ) ) ; }
Determine whether should exclude file based on file extension defined in _excludedExtensions
E.g.
Determine whether should exclude file based on file extension defined in _excludedExtensions E . g .
Whether the file should be excluded
Whether the file should be excluded
filePath
string
Path to the file
Path to the file