# ForEachDirectory-Action does not set Directory Path Variable correct

**URL:** <https://www.finalbuilder.com/forums/t/foreachdirectory-action-does-not-set-directory-path-variable-correct/6724>\
**Category:** Bugs\
**Tags:** continua-ci, fixed\
**Created:** [February 24, 2020, 8:28am UTC](https://www.finalbuilder.com/forums/t/foreachdirectory-action-does-not-set-directory-path-variable-correct/6724 "2020-02-24T08:28:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rynardald](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/a88e57/32.png) [@rynardald](https://www.finalbuilder.com/forums/u/rynardald)\
**Post date:** [February 24, 2020, 8:28am UTC](https://www.finalbuilder.com/forums/t/foreachdirectory-action-does-not-set-directory-path-variable-correct/6724/1 "2020-02-24T08:28:55Z")

</div>

Hi VSoft,  
the ForEachDirectory-actions seems to not work correctly. When I use it the root directory of all found directories (Directory Path Variable) is ‘C\Windows\System32’. But this is wrong, my directories are in the agent workspace which is definitely not there.  
Currently I’m using the version 1.9.1.545 but I did not see in the changelog that this issue was fixed in a later version.

---

<div class="post-metadata">

**Author:** ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)\
**Post date:** [February 24, 2020, 11:37am UTC](https://www.finalbuilder.com/forums/t/foreachdirectory-action-does-not-set-directory-path-variable-correct/6724/2 "2020-02-24T11:37:14Z")

</div>

Hi Albrecht,

We can confirm this is a bug - we omitted prepending the root directory to the relative folder when setting the Directory Path variable.

We’ll upload a new build with a fix tomorrow. Thank you for your report.

---

<div class="post-metadata">

**Author:** ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)\
**Post date:** [February 25, 2020, 6:36am UTC](https://www.finalbuilder.com/forums/t/foreachdirectory-action-does-not-set-directory-path-variable-correct/6724/3 "2020-02-25T06:36:26Z")

</div>

You can download a hot fix for this issue using the following links:

- [Download Continua CI Server v1.9.1.593 (Hotfix) (64 bit)](http://downloads.finalbuilder.com/downloads/continua/1.9.1/ContinuaCI.Server.Setup_x64_1.9.1.593.Hotfix.exe)
- [Download Continua CI Agent v1.9.1.593 (Hotfix) (64 bit)](http://downloads.finalbuilder.com/downloads/continua/1.9.1/ContinuaCI.Agent.Setup_x64_1.9.1.593.Hotfix.exe)
- [Download Continua CI Agent v1.9.1.593 (Hotfix) (32 bit)](http://downloads.finalbuilder.com/downloads/continua/1.9.1/ContinuaCI.Agent.Setup_1.9.1.593.Hotfix.exe)

---

<div class="post-metadata">

**Author:** ![rynardald](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/a88e57/32.png) [@rynardald](https://www.finalbuilder.com/forums/u/rynardald)\
**Post date:** [February 28, 2020, 12:41pm UTC](https://www.finalbuilder.com/forums/t/foreachdirectory-action-does-not-set-directory-path-variable-correct/6724/4 "2020-02-28T12:41:42Z")

</div>

Works. Thanks for fixing.
