CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (http://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   C plateformindependent folder delete command (http://www.cfd-online.com/Forums/openfoam-post-processing/61466-c-plateformindependent-folder-delete-command.html)

maka December 14, 2005 09:11

I'm trying to delete some fold
 
I'm trying to delete some folder within a loop, you may read:

http://www.cfd-online.com/OpenFOAM_D...tml?1134562862

I came to the following code:

forAll (databases, procI)
{
DELETECOMMAND args.rootPath()/args.caseName()/fileName(word("processor") + name(procI))/runTime.timeName()
}

but I'm looking for plateform-independent folder delete command. Thanks.

Regards,
Maka

mattijs December 16, 2005 05:50

in OSspecific.H : rmDir
 
in OSspecific.H : rmDir


All times are GMT -4. The time now is 20:42.