Menu

Hidden Files Issue

2008-01-15
2013-04-26
  • Michael Primeaux

    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

     
    • Bobby Norton

      Bobby Norton - 2008-01-19

      Hey, Michael,

      Hidden files should indeed be skipped. We will incorporate this fix in the next release. Thanks for spotting this issue!

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.