# Fileset Include Patterns FB 6.3.0.2026 AND 7.0.0.515 grab incorrect file list

**URL:** https://www.finalbuilder.com/forums/t/fileset-include-patterns-fb-6-3-0-2026-and-7-0-0-515-grab-incorrect-file-list/3272
**Category:** Bugs
**Created:** [August 19, 2010, 4:11am UTC](https://www.finalbuilder.com/forums/t/fileset-include-patterns-fb-6-3-0-2026-and-7-0-0-515-grab-incorrect-file-list/3272 "2010-08-19T04:11:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![silverknight](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/silverknight/32/108_2.png) [@silverknight](https://www.finalbuilder.com/forums/u/silverknight)
#### Post date: [August 19, 2010, 4:11am UTC](https://www.finalbuilder.com/forums/t/fileset-include-patterns-fb-6-3-0-2026-and-7-0-0-515-grab-incorrect-file-list/3272/1 "2010-08-19T04:11:52Z")

</div>

ENVIRONMENT:  
Windows XP&nbsp;SP2

FB 6.3.0.2026  
FB 7.0.0.515

&nbsp;

OBSERVED&nbsp;BEHAVIOR:  
Recently, we have started to use Delphi 2010 to upgrade some of our projects.&nbsp; This product introduces the .DPROJ file, and I noticed some odd behavior in both FB 6.3.0.2026 AND 7.0.0.515.

When defining a File Set, and using the include pattern of \*.dpr , the fileset will ALSO&nbsp;include \*.DPROJ&nbsp;files in the file set.&nbsp; The help file does not indicate that the behavior of the first will include instances of the second, so I suspect there is a bug in the parsing .&nbsp;

The fileset is interpreting the include pattern to be \*.dpr\* instead of an exact match of dpr for the extention (\*.dpr).  
(not sure if it matters, but "Recursive" is OFF, and "Directories Only" is OFF in the "Include patterns" properties page)  
&nbsp;

&nbsp;

WORKAROUND:  
The current work-around is to include an EXCLUDE&nbsp;pattern of \*.DPROJ to exclude the extra matching files.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [August 19, 2010, 11:36am UTC](https://www.finalbuilder.com/forums/t/fileset-include-patterns-fb-6-3-0-2026-and-7-0-0-515-grab-incorrect-file-list/3272/2 "2010-08-19T11:36:39Z")

</div>

Hi Kent   
  
 This is a windows oddity… We are using the windows FindFirstFile/FindNextFile api’s to do this. What you are seeing is those functions matching on the 8.3 filename, you can see this happen in the command window, for example :   
 [code]I:\FBMainline\FinalBuilder\IDE2\>dir /x \*.dpr Volume in drive I is SOURCE Volume Serial Number is 8AF7-C7AD Directory of I:\FBMainline\FinalBuilder\IDE206/08/2010 11:35 AM 22,788 FINALB~1.DPR FinalBuilder7.dpr06/08/2010 11:35 AM 35,786 FINALB~2.DPR FinalBuilder7.dproj 2 File(s) 58,574 bytes 0 Dir(s) 206,810,755,072 bytes free[/code]   
  
 So the workaround is the correct way to do this. I will add a task to our todo list to investigate if we can improve this to make it easier.
