# Selective File Copy with IniFile Iterator and FileSet

**URL:** https://www.finalbuilder.com/forums/t/selective-file-copy-with-inifile-iterator-and-fileset/3697
**Category:** Bugs
**Created:** [July 19, 2018, 3:32am UTC](https://www.finalbuilder.com/forums/t/selective-file-copy-with-inifile-iterator-and-fileset/3697 "2018-07-19T03:32:07Z")
**Posts on this page:** 3
**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: [July 19, 2018, 3:32am UTC](https://www.finalbuilder.com/forums/t/selective-file-copy-with-inifile-iterator-and-fileset/3697/1 "2018-07-19T03:32:07Z")

</div>

Hi there in Canberra.   
  
 I have a build process for a bigger software project with FB and after a successful build I do a selective deployment of the results with FB IniFile Iterator and FileSet. This give us the possibility to ignore projects on deploying the results. Now I want to copy the results even more selective to save time and storage. But it is not running.   
  
 A file structure may be like the following.   
  
  
  
 ±---- Sln1   
 ±---- Assemblies   
 ±---- AnyCPU   
 ±---- x64   
 ±---- x86   
  
 ±---- Sln2   
 ±---- Assemblies   
 ±---- AnyCPU   
 ±---- x64   
 ±---- x86   
  
 ±---- Sln3   
 ±---- Assemblies   
 ±---- AnyCPU   
  
 ±---- Sln4   
 ±---- Assemblies   
  
 ±----   
  
 The deployment iterates from Sln1 to Sln4 with a FileSet Define and a FileSet Copy to deploy the results of a single solution at every step.   
  
 I don’t want to copy \*.PDB files, Assemblies and AnyCPU of Sln1 + Sln2 and Assemblies of Sln3. All remaining files should be copied.   
  
 The base directory is . In the FileSet Define I tried first exclude patterns like “…\Sln1\Assemblies”. Then I changed it to “…\Sln1\Assemblies” and to “\Sln1\Assemblies”. But no files are excluded.   
  
 Is it possible at all to do a file copy this way with the FB board instruments? Where can I find an example about such functionality?   
  
 Regards,   
 Thomas from Hamburg.

---

<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: [July 19, 2018, 3:37am UTC](https://www.finalbuilder.com/forums/t/selective-file-copy-with-inifile-iterator-and-fileset/3697/2 "2018-07-19T03:37:29Z")

</div>

Hi,   
 the editor swallows some text. Here is the structure again.   
  
 [ResultDir]   
  
 ±---- Sln1   
 …±---- Assemblies   
 …±---- AnyCPU   
 …±---- x64   
 …±---- x86   
  
 ±---- Sln2   
 …±---- Assemblies   
 …±---- AnyCPU   
 …±---- x64   
 …±---- x86   
  
 ±---- Sln3   
 …±---- Assemblies   
 …±---- AnyCPU   
  
 ±---- Sln4   
 …±---- Assemblies   
  
 ±---- [more possible]

---

<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: [July 20, 2018, 4:40am UTC](https://www.finalbuilder.com/forums/t/selective-file-copy-with-inifile-iterator-and-fileset/3697/3 "2018-07-20T04:40:59Z")

</div>

The exclude patterns are relative to the base folder. To exclude a folder, include a trailing \   
  
 [https://wiki.finalbuilder.com/display/FB8/FileSet+Patterns](https://wiki.finalbuilder.com/display/FB8/FileSet+Patterns)
