1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2024-09-20 05:25:37 +01: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,13 +534,10 @@ void Plot::save(string dirName)
commandBack = plotCommand_;
// generate directory
if (access(dirName.c_str(), R_OK|W_OK|X_OK))
{
if (mkdir(dirName.c_str(), mode755))
if (mkdir(dirName))
{
LATAN_ERROR(Io, "impossible to create directory '" + dirName + "'");
}
}
// save PDF
options_.terminal = "pdf";