mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-18 02:24:19 +02:00
Merge pull request #6947 from huffman/fix-entity--mkdir
Update entity server to always make resource directory if it does not…
This commit is contained in:
commit
f00ec8de5d
1 changed files with 6 additions and 6 deletions
|
@ -1172,15 +1172,15 @@ void OctreeServer::domainSettingsRequestComplete() {
|
|||
pathToCopyFrom = oldDefaultPersistPath;
|
||||
}
|
||||
|
||||
QDir persistFileDirectory = QDir(persistPath).filePath("..");
|
||||
if (!persistFileDirectory.exists()) {
|
||||
qDebug() << "Creating data directory " << persistFileDirectory.absolutePath();
|
||||
persistFileDirectory.mkpath(".");
|
||||
}
|
||||
|
||||
if (shouldCopy) {
|
||||
qDebug() << "Old persist file found, copying from " << pathToCopyFrom << " to " << persistPath;
|
||||
|
||||
QDir persistFileDirectory = QDir(persistPath).filePath("..");
|
||||
|
||||
if (!persistFileDirectory.exists()) {
|
||||
qDebug() << "Creating data directory " << persistFileDirectory.path();
|
||||
persistFileDirectory.mkpath(".");
|
||||
}
|
||||
QFile::copy(pathToCopyFrom, persistPath);
|
||||
} else {
|
||||
qDebug() << "No existing persist file found";
|
||||
|
|
Loading…
Reference in a new issue