mirror of
https://github.com/lubosz/overte.git
synced 2025-04-15 19:47:38 +02:00
Merge pull request #6897 from huffman/fix-asset-migration
Fix asset server not creating resources directory before migrating
This commit is contained in:
commit
cc96d90a21
1 changed files with 3 additions and 3 deletions
|
@ -54,6 +54,9 @@ void AssetServer::run() {
|
|||
|
||||
_resourcesDirectory = QDir(ServerPathUtils::getDataDirectory()).filePath(RESOURCES_PATH);
|
||||
|
||||
qDebug() << "Creating resources directory";
|
||||
_resourcesDirectory.mkpath(".");
|
||||
|
||||
bool noExistingAssets = !_resourcesDirectory.exists() \
|
||||
|| _resourcesDirectory.entryList(QDir::Files).size() == 0;
|
||||
|
||||
|
@ -83,9 +86,6 @@ void AssetServer::run() {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
qDebug() << "Creating resources directory";
|
||||
_resourcesDirectory.mkpath(".");
|
||||
}
|
||||
qDebug() << "Serving files from: " << _resourcesDirectory.path();
|
||||
|
||||
|
|
Loading…
Reference in a new issue