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 ebbb2cd commit 3dbbbe4Copy full SHA for 3dbbbe4
src/main/kotlin/de/gmuth/ipp/client/CupsClient.kt
@@ -76,8 +76,9 @@ class CupsClient(
76
77
fun getPrinter(printerName: String) =
78
try {
79
- IppPrinter(printerUri = cupsPrinterUri(printerName), ippClient = ippClient)
80
- .apply { printerDirectory = File(cupsDirectory, printerName).createDirectoryIfNotExists() }
+ IppPrinter(printerUri = cupsPrinterUri(printerName), ippClient = ippClient).apply {
+ printerDirectory = File(cupsDirectory, printerName).createDirectoryIfNotExists(false)
81
+ }
82
} catch (clientErrorNotFoundException: ClientErrorNotFoundException) {
83
with(getPrinters()) {
84
if (isNotEmpty()) logger.warning { "Available CUPS printers: ${map { it.name }}" }
0 commit comments