# How to get paths to game root folder and user documents?

**URL:** <https://forums.unrealengine.com/t/how-to-get-paths-to-game-root-folder-and-user-documents/303345>\
**Category:** C++\
**Tags:** windows, unreal-engine, path, question, CPP\
**Created:** [January 8, 2015, 10:05am UTC](https://forums.unrealengine.com/t/how-to-get-paths-to-game-root-folder-and-user-documents/303345 "2015-01-08T10:05:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zeOrb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zeOrb](https://forums.unrealengine.com/u/zeOrb)\
**Post date:** [January 8, 2015, 10:05am UTC](https://forums.unrealengine.com/t/how-to-get-paths-to-game-root-folder-and-user-documents/303345/1 "2015-01-08T10:05:28Z")

</div>

I think question is self explanatory

---

<div class="post-metadata">

**Author:** ![Jamie\_Dale](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jamie_dale/32/1165413_2.png) [@Jamie\_Dale](https://forums.unrealengine.com/u/Jamie_Dale)\
**Post date:** [January 8, 2015, 10:29am UTC](https://forums.unrealengine.com/t/how-to-get-paths-to-game-root-folder-and-user-documents/303345/2 "2015-01-08T10:29:31Z")

</div>

`FPaths` provides access to a variety of directories, with `FPaths::GameDir()` being the game root (`FPaths::GameContentDir` for the game content).

`FPlatformProcess` provides access to OS directories, however we don’t seem to have something that will guarantee the “Documents” folder. We do have `FPaths::UserDir()`, which is the root of the user folder, or `FPlatformProcess::UserSettingsDir()` which is the platform specific place to store user-specific settings.

---

<div class="post-metadata">

**Author:** ![zeOrb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zeOrb](https://forums.unrealengine.com/u/zeOrb)\
**Post date:** [January 8, 2015, 10:47am UTC](https://forums.unrealengine.com/t/how-to-get-paths-to-game-root-folder-and-user-documents/303345/3 "2015-01-08T10:47:26Z")

</div>

Oh, thanks, this is more than enough!

---

<div class="post-metadata">

**Author:** ![lebek](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lebek](https://forums.unrealengine.com/u/lebek)\
**Post date:** [December 29, 2016, 5:24pm UTC](https://forums.unrealengine.com/t/how-to-get-paths-to-game-root-folder-and-user-documents/303345/4 "2016-12-29T17:24:15Z")

</div>

I think you meant `FPlatformProcess::UserDir()` rather than `FPaths::UserDir()` (which doesn’t exist).
