# getCurrentWorkingDirectory

**URL:** <https://forum.juce.com/t/getcurrentworkingdirectory/1640>\
**Category:** MacOSX and iOS\
**Created:** [April 23, 2007, 2:26pm UTC](https://forum.juce.com/t/getcurrentworkingdirectory/1640 "2007-04-23T14:26:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwray](https://avatars.discourse-cdn.com/v4/letter/j/f08c70/32.png) [@jwray](https://forum.juce.com/u/jwray)\
**Post date:** [April 23, 2007, 2:26pm UTC](https://forum.juce.com/t/getcurrentworkingdirectory/1640/1 "2007-04-23T14:26:25Z")

</div>

When I compile code with getCurrentWorkingDirectory in release mode on xcode and the run the .app independently I get no information on the current directory. This does work in debug mode. Any thoughts?

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [April 23, 2007, 3:27pm UTC](https://forum.juce.com/t/getcurrentworkingdirectory/1640/2 "2007-04-23T15:27:01Z")

</div>

Well the code’s right there in File::getCurrentWorkingDirectory(), so you can see how simple it is - it just calls getcwd. Try tracing into it or adding some printfs to see what’s going on there. I can’t think of any reason why it’d work differently in release mode.

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [May 12, 2017, 8:56pm UTC](https://forum.juce.com/t/getcurrentworkingdirectory/1640/3 "2017-05-12T20:56:56Z")

</div>

Closed on May 12, 2017, 8:56pm UTC


