JFLarvoire / SysToolsLib

A library of Windows and Linux system management tools
Apache License 2.0
314 stars 93 forks source link

glob() function for Windows? #36

Open darealshinji opened 7 months ago

darealshinji commented 7 months ago

There's no glob() function on Windows, even in MinGW. However I have modified NetBSD's glob to work on Windows: https://github.com/darealshinji/glob-dirent-win32

Maybe you're interested to do something similar? Perhaps even with wide chatacter support.

JFLarvoire commented 7 months ago

It'd definitely be better with UTF-8 character support, as the MsvcLibX library uses UTF-8 internally for everything. But I'm sure this has already been done somewhere. (Preferably with a license compatible with the Apache License we use.)

darealshinji commented 7 months ago

(Preferably with a license compatible with the Apache License we use.)

NetBSD's glob.c is licensed under 3 Clause BSD.