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

Function cpp_main

example/file_status.cpp:98–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected