mirror of
https://github.com/fabianonline/telegram_backup.git
synced 2024-11-22 16:56:16 +00:00
Copy config.sample.ini to the right folder.
This commit is contained in:
parent
955ae42952
commit
4d45c7f1cc
@ -67,7 +67,7 @@ class Settings(val file_base: String, val database: Database, val cli_settings:
|
|||||||
|
|
||||||
private fun copy_sample_ini(filename: String) {
|
private fun copy_sample_ini(filename: String) {
|
||||||
val stream = Config::class.java.getResourceAsStream("/config.sample.ini")
|
val stream = Config::class.java.getResourceAsStream("/config.sample.ini")
|
||||||
File(filename).outputStream().use { stream.copyTo(it) }
|
File(file_base + "config.sample.ini").outputStream().use { stream.copyTo(it) }
|
||||||
stream.close()
|
stream.close()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user