MCPcopy Create free account
hub / github.com/boostorg/filesystem / try_exists

Function try_exists

example/file_status.cpp:76–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76void try_exists()
77{
78 cout << "\nexists(" << p << ") ";
79 try
80 {
81 bool result = exists(p);
82 cout << "is " << (result ? "true" : "false") << "\n";
83 }
84 catch (const filesystem_error& ex)
85 {
86 cout << "throws a filesystem_error exception: " << ex.what() << "\n";
87 }
88}
89
90} // namespace
91

Callers 1

cpp_mainFunction · 0.85

Calls 2

whatMethod · 0.80
existsFunction · 0.50

Tested by

no test coverage detected