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

Function create_tree

test/copy_test.cpp:54–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54fs::path create_tree()
55{
56 fs::path root_dir = fs::unique_path();
57
58 fs::create_directory(root_dir);
59 create_file(root_dir / "f1", "f1");
60 create_file(root_dir / "f2", "f2");
61
62 fs::create_directory(root_dir / "d1");
63 create_file(root_dir / "d1/f1", "d1f1");
64
65 fs::create_directory(root_dir / "d1/d1");
66 create_file(root_dir / "d1/d1/f1", "d1d1f1");
67
68 fs::create_directory(root_dir / "d1/d2");
69
70 fs::create_directory(root_dir / "d2");
71 create_file(root_dir / "d2/f1", "d2f1");
72
73 return root_dir;
74}
75
76typedef std::set< fs::path > directory_tree;
77

Callers 1

mainFunction · 0.70

Calls 3

create_fileFunction · 0.70
unique_pathFunction · 0.50
create_directoryFunction · 0.50

Tested by

no test coverage detected