# FSI Current Directory

**URL:** <https://forums.fsharp.org/t/fsi-current-directory/3470>\
**Category:** Uncategorized\
**Created:** [December 11, 2023, 4:18am UTC](https://forums.fsharp.org/t/fsi-current-directory/3470 "2023-12-11T04:18:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![altbodhi](https://yyz2.discourse-cdn.com/flex030/user_avatar/forums.fsharp.org/altbodhi/32/1253_2.png) [@altbodhi](https://forums.fsharp.org/u/altbodhi)\
**Post date:** [December 11, 2023, 4:18am UTC](https://forums.fsharp.org/t/fsi-current-directory/3470/1 "2023-12-11T04:18:54Z")

</div>

Many library such as BenchmarkDotNet attempting to write to disk, but is always set any system folder as current directory.  
And i get System.UnauthorizedAccessException. In case with benchmark it is `Application Data`.  
It hard for my mind. How to set current directory same as **SOURCE\_DIRECTORY** var? I see it in output:  
Unable to find .sln or .csproj file. Will use current directory $HOME to search for project file. If you don’t use .sln file on purpose it should not be a problem.

---

<div class="post-metadata">

**Author:** ![altbodhi](https://yyz2.discourse-cdn.com/flex030/user_avatar/forums.fsharp.org/altbodhi/32/1253_2.png) [@altbodhi](https://forums.fsharp.org/u/altbodhi)\
**Post date:** [December 13, 2023, 6:50am UTC](https://forums.fsharp.org/t/fsi-current-directory/3470/2 "2023-12-13T06:50:02Z")

</div>

Notice: Any app use work dir the same one from which it was launched. But FSI use same as %appdata%. I don’t undestand it.
