MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / makeDirectories

Method makeDirectories

src/App/VRMLObject.cpp:133–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133void VRMLObject::makeDirectories(const std::string& path, const std::string& subdir)
134{
135 std::string::size_type pos = subdir.find('/');
136 while (pos != std::string::npos) {
137 std::string sub = subdir.substr(0, pos);
138 std::string dir = path;
139 dir += '/';
140 dir += sub;
141 Base::FileInfo fi(dir);
142 if (!fi.createDirectory()) {
143 break;
144 }
145 pos = subdir.find('/', pos + 1);
146 }
147}
148
149void VRMLObject::Save(Base::Writer& writer) const
150{

Callers

nothing calls this directly

Calls 3

substrMethod · 0.80
createDirectoryMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected