# File exists with wildcard

**URL:** https://www.finalbuilder.com/forums/t/file-exists-with-wildcard/444
**Category:** Discussion
**Created:** [April 26, 2007, 6:28am UTC](https://www.finalbuilder.com/forums/t/file-exists-with-wildcard/444 "2007-04-26T06:28:09Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![stevage](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/bc8723/32.png) [@stevage](https://www.finalbuilder.com/forums/u/stevage)
#### Post date: [April 26, 2007, 6:28am UTC](https://www.finalbuilder.com/forums/t/file-exists-with-wildcard/444/1 "2007-04-26T06:28:09Z")

</div>

It seems that the “Check if file exists” action doesn’t allow wildcards. This fact is mentioned in the action inspector, but not in the normal action window, nor in the documentation.  
  
In my case, it was actually useful to use the _._ wildcard: I don’t care whether the folder exists, I care whether it has files in it. Perhaps this could be added?  
  
The workaround is to use a file iterator in the folder, and if it iterates at least once, there’s a file in there.   
Steve

---

<div class="post-metadata">

### Author: ![tate](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@tate](https://www.finalbuilder.com/forums/u/tate)
#### Post date: [April 27, 2007, 9:07am UTC](https://www.finalbuilder.com/forums/t/file-exists-with-wildcard/444/2 "2007-04-27T09:07:20Z")

</div>

Steve,  
  
The check if file exists should work with wild cards. I just tried with “C:\temp\*.doc” and it return that it did find something, but “C:\temp\*.docs” didn’t  
  
.t8
