MCPcopy Create free account
hub / github.com/Icinga/icinga2 / DirName

Method DirName

lib/base/utility.cpp:260–263  ·  view source on GitHub ↗

* Returns the directory component of a path. See dirname(3) for details. * * @param path The full path. * @returns The directory. */

Source from the content-addressed store, hash-verified

258 * @returns The directory.
259 */
260String Utility::DirName(const String& path)
261{
262 return boost::filesystem::path(path.Begin(), path.End()).parent_path().string();
263}
264
265/**
266 * Returns the file component of a path. See basename(3) for details.

Callers

nothing calls this directly

Calls 3

stringMethod · 0.45
BeginMethod · 0.45
EndMethod · 0.45

Tested by

no test coverage detected