我有一些像这样的代码片段:
#include <glob.h>
glob_t globBuf;
const int result = glob(remoteFileName.c_str(), 0, 0, &globBuf);
if (result == GLOB_NOSPACE) {
...
} else if (result == GLOB_NOMATCH) {
...
} else {
...
}
但我glob.h
在 Windows 上找不到。
我将在 Microsoft Windows 上使用什么来提供等效的功能来从 Linux 移植此代码?