mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2024-11-10 08:55:37 +00:00
Plot: use of new mkdir function from LatCore
This commit is contained in:
parent
2b0d75c012
commit
ccce7b11c0
@ -534,13 +534,10 @@ 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
|
||||||
options_.terminal = "pdf";
|
options_.terminal = "pdf";
|
||||||
|
Loading…
Reference in New Issue
Block a user