MCPcopy Create free account
hub / github.com/davisking/dlib / is_root_path

Method is_root_path

dlib/dir_nav/dir_nav_kernel_2.cpp:235–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233// ----------------------------------------------------------------------------------------
234
235 bool directory::
236 is_root_path (
237 const std::string& path
238 ) const
239 {
240 const char sep = get_separator();
241 if (path.size() == 1 && path[0] == sep)
242 return true;
243 else
244 return false;
245 }
246
247// ----------------------------------------------------------------------------------------
248

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected