Closed darealshinji closed 8 years ago
Looks like FindFirstFile
is the standard way to do this with Win32.
Edit: That looks like a massive pain to use, so ignore that. I'm still looking for other options, but it looks like Win32 doesn't have anything directly comparable to glob(3)
. If that holds true, I'll merge this as-is.
glob(3)
may still be supported by Msys2 and Cygwin.
In that case, go with that.
Did a test and both Cygwin and MSYS2 provide glob(3)
. I'll use that then.
I've rewritten the package detection.
Merged, thanks!
Since MSYS uses
pacman
, it's probably better to do the Windows equivalent ofglob(3)
on wherever MSYS keeps thepacman
local cache (/var/lib/pacman/local/
on *nix). That should be faster than the fork/exec cycle needed bypopen
.