We have an issue with our build in that hidden files are being processed within the DirectoryScanner.GetChangeScriptsForDirectory(DirectoryInfo) method. Specifically, we had to modify the foreach loop to ensure hidden files are skipped.
I'd like to request either this change be added to the existing code base or (for backwards compatibility) a configuration option be added to skip hidden files.
Regards,
Michael
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
We have an issue with our build in that hidden files are being processed within the DirectoryScanner.GetChangeScriptsForDirectory(DirectoryInfo) method. Specifically, we had to modify the foreach loop to ensure hidden files are skipped.
foreach (FileInfo file in directory.GetFiles())
{
if((file.Attributes & FileAttributes.Hidden) == FileAttributes.Hidden)
{
continue;
}
// Other code follows.
}
I'd like to request either this change be added to the existing code base or (for backwards compatibility) a configuration option be added to skip hidden files.
Regards,
Michael
Hey, Michael,
Hidden files should indeed be skipped. We will incorporate this fix in the next release. Thanks for spotting this issue!