ron
12/10/2017, 12:42 PMkastork
12/10/2017, 8:33 PMkastork
12/10/2017, 8:34 PMkastork
12/10/2017, 8:34 PMron
12/10/2017, 8:34 PMron
12/10/2017, 8:37 PMbutton("save") {
action {
runAsync(taskStatus) {
val url = controller.storyModel.url.value.replace("index.html", "");
makeBook(controller.storyModel.title.value, url, baseDirectory = controller.directory.replace("\\", "/")) { current, max ->
updateProgress((current + 1).toDouble(), max.toDouble())
updateMessage("${current+1} / $max")
}
}
}
}
kastork
12/10/2017, 8:41 PMjava.nio.files
I've managed to stop doing this .replace("\\", "/")
all the time.kastork
12/10/2017, 8:41 PMkastork
12/10/2017, 8:43 PMron
12/10/2017, 8:43 PMkastork
12/10/2017, 8:44 PMron
12/10/2017, 8:44 PMkastork
12/10/2017, 8:45 PMron
12/10/2017, 8:46 PMkastork
12/10/2017, 8:47 PMron
12/10/2017, 8:48 PMkastork
12/10/2017, 8:48 PMkastork
12/10/2017, 8:49 PMron
12/10/2017, 8:50 PM