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

Function addTrailingSlash

pdal/util/FileUtils.cpp:80–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80std::string addTrailingSlash(std::string path)
81{
82 if (path[path.size() - 1] != '/' && path[path.size() - 1] != '\\')
83 path += "/";
84 return path;
85}
86
87} // unnamed namespace
88

Callers 2

getcwdFunction · 0.85
getDirectoryFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected