Unix样式的路径名模式扩展 目录 快速开始 该库有两种版本: 两个文件版本: glob.h和glob.cpp single_include/单个头文件版本 没有外部依赖-仅是标准库 需要C ++ 17 std::filesystem 如果您不能使用C++17 ,则可以集成。 麻省理工学院执照 构建库和独立样本 cmake -Hall -Bbuild cmake --build build # run standalone `glob` sample ./build/standalone/glob --help 用法 // Match on a single pattern for ( auto & p : glob::glob( " ~/.b* " )) { // e.g., .bash_history, .bashrc // do somethi
2022-12-01 19:23:06 158KB lightweight unix filesystem-library filesystem
1