I have a file that I would like to manipulate using NodeWebkit, but I'm having problems finding the file when using a relative path.
Example: I have a global variable (dataPath) with the path to the file and two events that display "True" if it can find the file or "False" if it can't.
When dataPath is set to "C:\datafolder\file.txt", it displays "True".
When dataPath is set to "..\datafolder\file.txt", it displays "False". (this is with the game files exported and running from C:\gamefolder)
So my directories looks like this: