| 293 | } |
| 294 | |
| 295 | bool Directory::dumpDirectories(Vector<Path>& out) |
| 296 | { |
| 297 | const Path sourcePath = getName(); |
| 298 | |
| 299 | FileNode::Attributes currentAttributes; |
| 300 | while (read(¤tAttributes)) |
| 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 | |
| 317 | FileNode::FileNode() |
no test coverage detected