We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dbc70c commit ec63ed4Copy full SHA for ec63ed4
src/main/kotlin/de/gmuth/ipp/client/IppPrinter.kt
@@ -699,8 +699,9 @@ open class IppPrinter(
699
700
fun savePrinterAttributes() =
701
exchange(ippRequest(GetPrinterAttributes)).run {
702
- printerDirectory = Path("")
703
- val name = if (attributes.containsKey("printer-make-and-model")) makeAndModel.text else printerUri.host
+
+ val name = if (attributes.containsKey("printer-make-and-model")) makeAndModel.text
704
+ else printerUri.host.also { printerDirectory = Path("") }
705
saveBytes(printerDirectory.resolve("$name.bin"))
706
printerGroup.saveText(printerDirectory.resolve("$name.txt"))
707
}
0 commit comments