MCPcopy Create free account
hub / github.com/PDAL/PDAL / glob

Function glob

pdal/PDALUtils.cpp:570–579  ·  view source on GitHub ↗

Glob remote or local filepaths. Remote paths only support '*' or '**' wildcard characters.

Source from the content-addressed store, hash-verified

568// Glob remote or local filepaths. Remote paths only support '*' or '**'
569// wildcard characters.
570std::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

Callers 4

parsePipelineFunction · 0.70
TESTFunction · 0.50
executeMethod · 0.50
createFileMethod · 0.50

Calls 3

isRemoteFunction · 0.85
remoteGlobFunction · 0.85
findMethod · 0.45

Tested by 1

TESTFunction · 0.40