Glob remote or local filepaths. Remote paths only support '*' or '**' wildcard characters.
| 568 | // Glob remote or local filepaths. Remote paths only support '*' or '**' |
| 569 | // wildcard characters. |
| 570 | std::vector<std::string> glob(const std::string& path) |
| 571 | { |
| 572 | // need to make sure '/' doesn't appear before '://' so PipelineReader can accept |
| 573 | // filenames starting with GDAL vsi prefixes. Maybe move this somewhere else. |
| 574 | // The isRemote check isn't necessary but only keeping the second part would look weird |
| 575 | if (isRemote(path) && (path.find("://") < path.find('/'))) |
| 576 | return remoteGlob(path); |
| 577 | else |
| 578 | return FileUtils::glob(path); |
| 579 | } |
| 580 | |
| 581 | } // namespace Utils |
| 582 | } // namespace pdal |