Currently, I'm ramping up with the project. I'm trying to add showItemInFolder support on Windows (just "copying" electron implementation).
I encounter a strange issue that when the path string pass into the NAPI side:
The js part pass-in the C:\\Users, but the pathName here is C:User (From debugger view). The inverse slashes are lost.
I tried to add more inverse slashes, but none of them shows up here.
I'm a noob in CPP and NAPI. Is this a NAPI issue? I cannot find relative issue around NAPI topic.
The showItemInFolder implantation works... If I hardcode the pathName
Currently, I'm ramping up with the project. I'm trying to add
showItemInFolder
support on Windows (just "copying" electron implementation). I encounter a strange issue that when thepath
string pass into the NAPI side:The js part pass-in the
C:\\Users
, but thepathName
here isC:User
(From debugger view). The inverse slashes are lost. I tried to add more inverse slashes, but none of them shows up here.I'm a noob in CPP and NAPI. Is this a NAPI issue? I cannot find relative issue around NAPI topic.
The
showItemInFolder
implantation works... If I hardcode thepathName
The folder shows up correctly.