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:
parent
2b0d75c012
commit
ccce7b11c0
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user