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

Function cpp_main

example/file_status.cpp:92–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90} // namespace
91
92int cpp_main(int argc, char* argv[])
93{
94 print_boost_macros();
95
96 if (argc < 2)
97 {
98 std::cout << "Usage: file_status <path>\n";
99 p = argv[0];
100 }
101 else
102 p = argv[1];
103
104 boost::system::error_code ec;
105 file_status s = status(p, ec);
106 cout << "\nfile_status s = status(" << p << ", ec) ";
107 show_status(s, ec);
108
109 s = symlink_status(p, ec);
110 cout << "\nfile_status s = symlink_status(" << p << ", ec) ";
111 show_status(s, ec);
112
113 try_exists();
114
115 return 0;
116}

Callers

nothing calls this directly

Calls 5

print_boost_macrosFunction · 0.85
show_statusFunction · 0.85
try_existsFunction · 0.85
statusFunction · 0.50
symlink_statusFunction · 0.50

Tested by

no test coverage detected