# Urgent! Fileset functions don't count correctly

**URL:** https://www.finalbuilder.com/forums/t/urgent-fileset-functions-dont-count-correctly/3404
**Category:** Bugs
**Created:** [October 28, 2011, 5:35am UTC](https://www.finalbuilder.com/forums/t/urgent-fileset-functions-dont-count-correctly/3404 "2011-10-28T05:35:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![tgrusche](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/6f9a4e/32.png) [@tgrusche](https://www.finalbuilder.com/forums/u/tgrusche)
#### Post date: [October 28, 2011, 5:35am UTC](https://www.finalbuilder.com/forums/t/urgent-fileset-functions-dont-count-correctly/3404/1 "2011-10-28T05:35:42Z")

</div>

Also tested with Windows 7 x64.

There is&nbsp;serious problem with&nbsp;filesets and iterative functions like "FileSet Iterator"&nbsp;or "FileSet Delete Files".

If&nbsp;you use&nbsp;in a fileset as include pattern something like "\*.exe" the iterative function&nbsp;will work with all files which match to "\*.exe\*".

The function finds and works with&nbsp;"abc.exe" as well as "abc.exe\_bak", "abc.exebak", ....

This behaviour produces "nice" errors you don't understand at first sight if you await for instance that 2 files are copied or deleted and not 10.

I&nbsp;send an test project with history and files as an attachment. You have to set the three path variables to a valid value before using it.

Regards,

Thomas.

&nbsp;

&nbsp;

[Test\_Fileset\_Iterator.zip](https://www.finalbuilder.com/forums/uploads/default/original/2X/4/452421ba8c963788081c7e2e9df84ccb1571af11.zip) (42.515 KB)

---

<div class="post-metadata">

### Author: ![stephen.ryan](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@stephen.ryan](https://www.finalbuilder.com/forums/u/stephen.ryan)
#### Post date: [October 31, 2011, 2:31am UTC](https://www.finalbuilder.com/forums/t/urgent-fileset-functions-dont-count-correctly/3404/2 "2011-10-31T02:31:44Z")

</div>

Hi Thomas,   
  
 This is the way that the Windows API for file searching works. For instance if you have a folder which contains files with both the .txt and .txts extension. If you run ‘dir \*.txt’ from the command prompt you will see that files with both .txt and .txts extensions are listed.   
  
 We hope to add the ability to use Regular Expressions to specify include and exclude patterns for the FileSet define action for FinalBuilder 8. This would allow users to user greater precision for selecting files.   
  
 Regards,   
 Steve
