CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   MkDir mode_t mode (https://www.cfd-online.com/Forums/openfoam-post-processing/61462-mkdir-mode_t-mode.html)

maka February 13, 2006 06:52

What is mode and how can I spe
 
What is mode and how can I specify it.
Foam::mkDir(const fileName& pathName, mode_t mode)

Regards,
Maka

maka February 13, 2006 07:13

I tried something like: con
 
I tried something like:

const fileName& path = runTime.path()/"statistics"/runTime.timeName();

mkDir(path,0644);

it compiled but did not work. Can any body help

best Regards,
Maka

maka February 13, 2006 07:29

problem solved.
 
problem solved.

ouafa January 22, 2010 10:42

Quote:

Originally Posted by maka (Post 187291)
What is mode and how can I specify it.
Foam::mkDir(const fileName& pathName, mode_t mode)

Regards,
Maka

Hi Maka,

I've a problem with this function and i see that you have already think about it. I try to simulate a turbulent flow in biperiodic channel and save data and statistics for later simulations. i use a little modified version of channelOodles which seems to run very well until the iteration 71 but gives the following error message before craching:
Couldn't create directory "constant/boundaryData/entree/71.974"
From function Foam::mkDir(const fileName&, mode_t)
in file Unix.C at line 410.
Can you help me to understand this error and resolve the problem?
thank's
Ouafa


All times are GMT -4. The time now is 15:34.