Skip to main content

overwolf.io.paths API

Use this API to obtain system folder paths.

tip

For more I/O functionalities, please use our simple I/O plugin.

You can call the object properties to get the requested path:

Supported paths

  • programFiles
  • programFilesX86
  • commonFiles
  • commonFilesX86
  • commonAppData
  • desktop
  • windows
  • system
  • systemX86
  • documents
  • videos
  • pictures
  • music
  • commonDocuments
  • favorites
  • fonts
  • startMenu
  • localAppData
  • Overwolf install dir - Version added: 0.169
  • Overwolf install dir with version number - Version added: 0.169
  • OBS dir - Version added: 0.169
  • userRoot - the current user's profile root folder. Version added: 0.305.0.9
  • downloads - the current user's Downloads folder, correctly resolved even when the folder is relocated (for example, via OneDrive). Version added: 0.305.0.9

Usage Example

To get the system path:

console.log(overwolf.io.paths.system)
//prints "C:\WINDOWS\system32"

To get the full path of the current extension (OW app), you can call overwolf.io.paths.localAppData and concatenate your extension id and your app version to it:

overwolf.io.paths.localAppData + "/Overwolf/Extensions/[your extension id]/[version]"

Where version can be retrieved from the app manifest.

note that this will not work if the extension is loaded as unpacked while developing.

To get the user's Downloads folder path:

console.log(overwolf.io.paths.downloads)
//prints the resolved Downloads folder path, even if the user moved it (for example, via OneDrive)