MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / removeFiles

Function removeFiles

src/surfMesh/surfMesh/surfMesh.C:413–420  ·  view source on GitHub ↗

Remove all files and some subdirs (eg, sets)

Source from the content-addressed store, hash-verified

411
412// Remove all files and some subdirs (eg, sets)
413void Foam::surfMesh::removeFiles(const fileName& instanceDir) const
414{
415 fileName meshFilesPath = db().path()/instanceDir/meshSubDir;
416
417 rm(meshFilesPath/"points");
418 rm(meshFilesPath/"faces");
419 rm(meshFilesPath/"surfZones");
420}
421
422void Foam::surfMesh::removeFiles() const
423{

Callers

nothing calls this directly

Calls 5

rmFunction · 0.50
pathMethod · 0.45
writeMethod · 0.45
pointsMethod · 0.45
facesMethod · 0.45

Tested by

no test coverage detected