MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / dumpDirectories

Method dumpDirectories

Engine/source/core/volume.cpp:295–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293}
294
295bool Directory::dumpDirectories(Vector<Path>& out)
296{
297 const Path sourcePath = getName();
298
299 FileNode::Attributes currentAttributes;
300 while (read(&currentAttributes))
301 {
302 Path currentPath = sourcePath;
303 currentPath.appendPath(currentPath.getFileName());
304 currentPath.setFileName(currentAttributes.name);
305
306 const bool result = IsDirectory(currentPath);
307 if (result)
308 {
309 out.push_back(currentPath);
310 }
311 }
312
313 return true;
314}
315
316
317FileNode::FileNode()

Callers 2

_dumpDirectoriesMethod · 0.45
DumpDirectoriesFunction · 0.45

Calls 6

IsDirectoryFunction · 0.85
appendPathMethod · 0.80
getFileNameMethod · 0.80
getNameFunction · 0.50
readFunction · 0.50
push_backMethod · 0.45

Tested by

no test coverage detected