fix build

This commit is contained in:
Moritz Zwerger 2025-07-01 17:16:08 +02:00
parent 39717c3144
commit 7127fae3df
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -65,7 +65,7 @@ object ProfileManagers : DefaultFactory<StorageProfileManager<*>>(
for (profileName in namespace.listFiles() ?: continue) {
if (!profileName.isDirectory) continue
for (type in profileName.listFiles() ?: continue) {
val target = (RunConfiguration.CONFIG_DIRECTORY / namespace.name / type.name.removeSuffix(".json") / profileName.name + ".json").toFile()
val target = (RunConfiguration.CONFIG_DIRECTORY / namespace.name / type.name.removeSuffix(".json") / "${profileName.name}.json").toFile()
target.mkdirParent()
ignoreAll { Files.move(type.toPath(), target.toPath()) }
}