mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Use FileName::createDirectory() instead of support::mkdir().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22151 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
15c9510db4
commit
d81b5c2994
@ -329,7 +329,7 @@ static FileName createTmpDir(FileName const & tempdir, string const & mask)
|
||||
// safe because of the gap between unlink and mkdir. (Lgb)
|
||||
tmpfl.removeFile();
|
||||
|
||||
if (tmpfl.empty() || mkdir(tmpfl, 0700)) {
|
||||
if (tmpfl.empty() || tmpfl.createDirectory(0700)) {
|
||||
lyxerr << "LyX could not create the temporary directory '"
|
||||
<< tmpfl << "'" << endl;
|
||||
return FileName();
|
||||
@ -348,7 +348,7 @@ string const createBufferTmpDir()
|
||||
package().temp_dir().absFilename() + "/lyx_tmpbuf" +
|
||||
convert<string>(count++);
|
||||
|
||||
if (mkdir(FileName(tmpfl), 0777)) {
|
||||
if (FileName(tmpfl).createDirectory(0777)) {
|
||||
lyxerr << "LyX could not create the temporary directory '"
|
||||
<< tmpfl << "'" << endl;
|
||||
return string();
|
||||
@ -362,7 +362,7 @@ FileName const createLyXTmpDir(FileName const & deflt)
|
||||
if (deflt.empty() || deflt.absFilename() == "/tmp")
|
||||
return createTmpDir(FileName("/tmp"), "lyx_tmpdir");
|
||||
|
||||
if (!mkdir(deflt, 0777))
|
||||
if (!deflt.createDirectory(0777))
|
||||
return deflt;
|
||||
|
||||
if (deflt.isDirWritable()) {
|
||||
|
Loading…
Reference in New Issue
Block a user