| 263 | |
| 264 | |
| 265 | std::vector<std::string> directoryList(const std::string& dir) |
| 266 | { |
| 267 | std::vector<std::string> files; |
| 268 | CPLStringList aosFileList(VSIReadDir(dir.c_str())); |
| 269 | for (int i = 0; i < aosFileList.size(); i++) |
| 270 | { |
| 271 | std::string osPath = |
| 272 | CPLFormFilename(dir.c_str(), aosFileList[i], nullptr); |
| 273 | files.push_back(osPath); |
| 274 | } |
| 275 | |
| 276 | return files; |
| 277 | } |
| 278 | |
| 279 | |
| 280 | void closeFile(std::ostream *out) |