# Move Directory

**URL:** <https://www.finalbuilder.com/forums/t/move-directory/4610>\
**Category:** Discussion\
**Created:** [April 13, 2016, 5:25am UTC](https://www.finalbuilder.com/forums/t/move-directory/4610 "2016-04-13T05:25:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![esco](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/e/9de053/32.png) [@esco](https://www.finalbuilder.com/forums/u/esco)\
**Post date:** [April 13, 2016, 5:25am UTC](https://www.finalbuilder.com/forums/t/move-directory/4610/1 "2016-04-13T05:25:48Z")

</div>

Hi  
  
Does anyone know if you can move a directory based on a wildcard search? I am trying to look for directories named **2016\_04\_13\*** for example and move them to another directory.  
  
Thanks  
Andrew

---

<div class="post-metadata">

**Author:** ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)\
**Post date:** [April 14, 2016, 1:28am UTC](https://www.finalbuilder.com/forums/t/move-directory/4610/2 "2016-04-14T01:28:01Z")

</div>

Hi Matthew,   
  
 I would use a “fileset define” action to define the list of directories to move. This can be done by setting the “include patterns | filespec” to “2016\_04\_13\*” then selecting the “directories only” option.   
  
 This will then give you a fileset that contains the name of the directories matching the filespec. You can then use a fileset iterator to loop through each directory and move it to the location you desire.   
  
 I assume you will want to extract parts of the directory name to know the location to move the folder to. For this I suggest using the “Path Manipulation” action. It can take a path and perform a number of actions on that path. Also the “string replace” function is good for renaming parts of a folder name if needed.
