mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-05-29 14:40:13 +02:00
Update entity server to always make resource directory if it does not exist
This commit is contained in:
parent
ab133f37a0
commit
a731a571e0
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