# FB 6.3.0.1916 Create Directory failure

**URL:** https://www.finalbuilder.com/forums/t/fb-6-3-0-1916-create-directory-failure/3218
**Category:** Bugs
**Created:** [March 1, 2010, 8:26am UTC](https://www.finalbuilder.com/forums/t/fb-6-3-0-1916-create-directory-failure/3218 "2010-03-01T08:26:26Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![braindead](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/b/6f9a4e/32.png) [@braindead](https://www.finalbuilder.com/forums/u/braindead)
#### Post date: [March 1, 2010, 8:26am UTC](https://www.finalbuilder.com/forums/t/fb-6-3-0-1916-create-directory-failure/3218/1 "2010-03-01T08:26:26Z")

</div>

I've attached a short project, 4 actions total.&nbsp; Running on Vista 64bit.

First two actions set a project variable, second two attempt to create directories stored in those project variables.&nbsp;

For whatever reason the first create directory works fine, however when I try to create another directory that fails.&nbsp; I've tried adding a \ at the end of the second one (the one that fails), didn't help, I've also tried moving the action that fails to before the one that works and that didn't help.

I tried "mkdir D:\!Projects\scratch\Scheduler\Output"&nbsp;from a command prompt and that works fine.

Set Variable X\_BUILD\_DIR to [D:\!Projects\scratch\Scheduler]  
&nbsp;&nbsp;&nbsp; Status: Completed  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Date: 3/1/2010  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Time: 16:22:35:867  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End: 16:22:35:892  
&nbsp; Duration: 00:00:00:025  
  
Action Messages:  
Variable X\_BUILD\_DIR set to: D:\!Projects\scratch\Scheduler  
Success  
Set Variable X\_OUTPUT\_DIR to [ D:\!Projects\scratch\Scheduler\Output  
&nbsp;]  
&nbsp;&nbsp;&nbsp; Status: Completed  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Date: 3/1/2010  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Time: 16:22:35:892  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End: 16:22:35:892  
&nbsp; Duration: 00:00:00:000  
  
Action Messages:  
Variable X\_OUTPUT\_DIR set to: D:\!Projects\scratch\Scheduler\Output  
Success  
Create Directory [D:\!Projects\scratch\Scheduler\Source]  
&nbsp;&nbsp;&nbsp; Status: Completed  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Date: 3/1/2010  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Time: 16:22:35:893  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End: 16:22:35:894  
&nbsp; Duration: 00:00:00:001  
  
Action Messages:  
Created directory: D:\!Projects\scratch\Scheduler\Source  
Create Directory [ D:\!Projects\scratch\Scheduler\Output  
&nbsp;]  
&nbsp;&nbsp;&nbsp; Status: Error  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Date: 3/1/2010  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Time: 16:22:35:895  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End: 16:22:35:895  
&nbsp; Duration: 00:00:00:000  
  
Action Messages:  
Unable to create directory: D:\!Projects\scratch\Scheduler\Output  
&nbsp;

[001\_test.fbp6](https://www.finalbuilder.com/forums/uploads/default/original/2X/5/543329bf99c861ac8108f18e3a8c338135080308.fbp6) (13.754 KB)

---

<div class="post-metadata">

### Author: ![paulsamways](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@paulsamways](https://www.finalbuilder.com/forums/u/paulsamways)
#### Post date: [March 1, 2010, 9:53am UTC](https://www.finalbuilder.com/forums/t/fb-6-3-0-1916-create-directory-failure/3218/2 "2010-03-01T09:53:47Z")

</div>

Hi,   
  
 Thanks for reporting this problem, the reason the action is failing is because in the Set Variable action for X\_OUTPUT\_DIR variable you are adding a new line after the path, removing the new line will stop the Create Directory from failing. I’ve also checked in a fix for the Create Directory action to check for this in future builds.   
  
 Regards,   
 Paul.

---

<div class="post-metadata">

### Author: ![braindead](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/b/6f9a4e/32.png) [@braindead](https://www.finalbuilder.com/forums/u/braindead)
#### Post date: [March 2, 2010, 12:10pm UTC](https://www.finalbuilder.com/forums/t/fb-6-3-0-1916-create-directory-failure/3218/3 "2010-03-02T12:10:07Z")

</div>

Thanks for the information, I figured it was something like that but just couldn't seem to find the problem.

And thanks for the eventual fix.

&nbsp;
