Listing files in Windows?

When I use:


I get back an array of the correct size with empty strings instead of file names.
Is there any way to debug this?
I tried several directories and it always has the correct number of items with no names.

I am using Haxe cpp native in Windows 10 with Openfl.