Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.io.IOException: Failed to create directory CUPS/192.168.0.91 #22

Closed
Badouu opened this issue May 14, 2024 · 3 comments
Closed

java.io.IOException: Failed to create directory CUPS/192.168.0.91 #22

Badouu opened this issue May 14, 2024 · 3 comments
Labels
bug Something isn't working with this library

Comments

@Badouu
Copy link

Badouu commented May 14, 2024

Hello. When I specify the CUPS server address. I get the following message:
java.io.IOException: Failed to create directory: CUPS/192.168.0.91

@gmuth
Copy link
Owner

gmuth commented May 14, 2024

Some CupsClient operations save files to cupsClientWorkDirectory.
By default the CupsClient creates directory "CUPS/${cupsUri.host}" in the current directory where the application has started. The application was expected to have write permissions on the filesystem.

I've commit and pushed a change to fix this issue. Please pull, build and test again.

gmuth added a commit that referenced this issue May 14, 2024
@gmuth gmuth added the bug Something isn't working with this library label May 14, 2024
@Badouu
Copy link
Author

Badouu commented May 15, 2024

Hello, thank you very much for your reactivity. The error is gone. I'll test in more detail tomorrow to see if everything is ok.

@gmuth
Copy link
Owner

gmuth commented May 15, 2024

In case your application calls ...save... methods it needs to make sure the directory exists. e.g. by successfully calling
cupsClient.cupsClientWorkDirectory.mkdirs()

@gmuth gmuth closed this as completed May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working with this library
Projects
None yet
Development

No branches or pull requests

2 participants