nwutils / nw-sample-apps

Sample Apps
MIT License
1.95k stars 551 forks source link

Issue with "scandir()" #47

Open gvanem opened 7 months ago

gvanem commented 7 months ago

I just discovered NW.JS and this sample-repo. Trying it on file-explorer:

f:\MinGW32\src\Languages\NWJS\Samples> ..\SDK\nw.exe file-explorer

and navigating to my Documents folder on my C:, showed this dialogue:

image

It should have been c:\Users\gvane\Documents. It exist with some files and sub-directories. The above directory does not exist.

The directory value (c:\Users\gvane\Documents) is what SHGetFolderPath (CSIDL_PERSONAL, SHGFP_TYPE_DEFAULT) returns here. And it'sthe same as %USERPROFILE%\Documents.

I'm on Win-10. Version-stuff from nw.exe:

nw.js v0.85.0
Node v21.1.0
Chromium 122.0.6261.69
commit hash: 0782fe7-2f7cef5-14203a4-3b8c807