1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2024-11-10 00:45:36 +00:00

Plot: use of new mkdir function from LatCore

This commit is contained in:
Antonin Portelli 2015-09-28 16:32:37 +01:00 committed by Antonin Portelli
parent 2b0d75c012
commit ccce7b11c0

View File

@ -534,12 +534,9 @@ void Plot::save(string dirName)
commandBack = plotCommand_; commandBack = plotCommand_;
// generate directory // generate directory
if (access(dirName.c_str(), R_OK|W_OK|X_OK)) if (mkdir(dirName))
{ {
if (mkdir(dirName.c_str(), mode755)) LATAN_ERROR(Io, "impossible to create directory '" + dirName + "'");
{
LATAN_ERROR(Io, "impossible to create directory '" + dirName + "'");
}
} }
// save PDF // save PDF