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

Function directory_exists

dlib/dir_nav/dir_nav_extensions.cpp:56–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54// ----------------------------------------------------------------------------------------
55
56 bool directory_exists (
57 const std::string& dirname
58 )
59 {
60 try
61 {
62 dlib::directory temp(dirname);
63 return true;
64 }
65 catch (directory::dir_not_found&)
66 {
67 return false;
68 }
69 }
70
71// ----------------------------------------------------------------------------------------
72

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected