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

Function file_exists

dlib/dir_nav/dir_nav_extensions.cpp:39–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37// ----------------------------------------------------------------------------------------
38
39 bool file_exists (
40 const std::string& filename
41 )
42 {
43 try
44 {
45 dlib::file temp(filename);
46 return true;
47 }
48 catch (file::file_not_found&)
49 {
50 return false;
51 }
52 }
53
54// ----------------------------------------------------------------------------------------
55

Callers 6

mainFunction · 0.85
mainFunction · 0.85
get_imagenet_val_listingFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected