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

Function report_status

example/error_demo.cpp:44–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void report_status(fs::file_status s)
45{
46 cout << " file_status::type() is ";
47 switch (s.type())
48 {
49 case fs::status_error:
50 cout << "status_error\n";
51 break;
52 case fs::file_not_found:
53 cout << "file_not_found\n";
54 break;
55 case fs::regular_file:
56 cout << "regular_file\n";
57 break;
58 case fs::directory_file:
59 cout << "directory_file\n";
60 break;
61 case fs::symlink_file:
62 cout << "symlink_file\n";
63 break;
64 case fs::block_file:
65 cout << "block_file\n";
66 break;
67 case fs::character_file:
68 cout << "character_file\n";
69 break;
70 case fs::fifo_file:
71 cout << "fifo_file\n";
72 break;
73 case fs::socket_file:
74 cout << "socket_file\n";
75 break;
76 case fs::type_unknown:
77 cout << "type_unknown\n";
78 break;
79 default:
80 cout << "not a valid enumeration constant\n";
81 }
82}
83
84void report_error_code(const error_code& ec)
85{

Callers 1

mainFunction · 0.85

Calls 1

typeMethod · 0.80

Tested by

no test coverage detected