Some of my programs do not work while using APFS for windows because trying to iterate through empty directories raises an error.

For example in cmd.exe

Using APFS for Windows file system driver it says it is not able to find the empty directory and reports an error.
Code:
D:\EmptyDirectory>dir D:\EmptyDirectory
 Directory of D:\EmptyDirectory

File Not Found

D:\EmptyDirectory>echo %errorlevel%
1
Compare to results from windows default file system driver
Code:
C:\Users\Public\Documents>dir C:\Users\Public\Documents
 Directory of C:\Users\Public\Documents

2/17/2020  09:20 PM    <DIR>          .
2/17/2020  09:20 PM    <DIR>          ..
               0 File(s)              0 bytes
               2 Dir(s)  15,519,891,776 bytes free

C:\Users\Public\Documents>echo %errorlevel%
0