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

Function main

example/tut6c.cpp:18–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16using namespace boost::system;
17
18int main(int argc, char* argv[])
19{
20 if (argc < 2)
21 {
22 std::cout << "Usage: tut6c path\n";
23 return 1;
24 }
25
26 error_code ec;
27 for (recursive_directory_iterator it(argv[1], ec);
28 it != recursive_directory_iterator();)
29 {
30 for (int i = 0; i <= it.depth(); ++i)
31 std::cout << " ";
32
33 std::cout << it->path() << '\n';
34
35 it.increment(ec);
36 }
37
38 return 0;
39}

Callers

nothing calls this directly

Calls 4

depthMethod · 0.80
pathMethod · 0.80
incrementMethod · 0.45

Tested by

no test coverage detected