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
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.