mirror of
https://github.com/revanced/revanced-api.git
synced 2025-04-29 22:24:31 +02:00
fix: Make sure, expected paths in configuration exist
This commit is contained in:
parent
d605efd54a
commit
32bedb7fad
@ -17,6 +17,7 @@ import kotlinx.serialization.json.JsonNamingStrategy
|
|||||||
import kotlinx.serialization.json.decodeFromStream
|
import kotlinx.serialization.json.decodeFromStream
|
||||||
import java.io.File
|
import java.io.File
|
||||||
import java.nio.file.Path
|
import java.nio.file.Path
|
||||||
|
import kotlin.io.path.createDirectories
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The repository storing the configuration for the API.
|
* The repository storing the configuration for the API.
|
||||||
@ -60,6 +61,11 @@ internal class ConfigurationRepository(
|
|||||||
@SerialName("about-json-file-path")
|
@SerialName("about-json-file-path")
|
||||||
val about: APIAbout,
|
val about: APIAbout,
|
||||||
) {
|
) {
|
||||||
|
init {
|
||||||
|
staticFilesPath.createDirectories()
|
||||||
|
versionedStaticFilesPath.createDirectories()
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Am asset configuration whose asset is signed.
|
* Am asset configuration whose asset is signed.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user