Dear all,
I am having random problems when I try to create a folder. Is there any way to ensure the creation of a folder? I am trying a while loop like the next but i am afraid to create an infinite loop.
//remove dir if exists
QDir previousDir
("previousDirPath");
if(previousProprocessingDir.exists())
removeDir(previousDirPath); //Custom process to remove dirs recursively
while (!QDir("previousDirPath").
exists()) { QDir().
mkdir("previousDirPath");
}
//remove dir if exists
QDir previousDir("previousDirPath");
if(previousProprocessingDir.exists())
removeDir(previousDirPath); //Custom process to remove dirs recursively
while (!QDir("previousDirPath").exists()) {
QDir().mkdir("previousDirPath");
}
To copy to clipboard, switch view to plain text mode
Thanks
Bookmarks