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

Attempting to open a file that does not exist creates that file unnecessarily #38

Open
zach-cloud opened this issue May 16, 2020 · 0 comments

Comments

@zach-cloud
Copy link
Contributor

When JMPQ3 attempts to open a file that does not exist, it creates a 0 byte file with the name that was attempted to be opened.

This is due to the use of FileChannel: https://docs.oracle.com/javase/7/docs/api/java/nio/channels/FileChannel.html#open(java.nio.file.Path,%20java.nio.file.OpenOption...)

Therefore as a user, I'd like the program to check for the existence of the file and throw an exception immediately before attempting to open it so that I don't get files created when I try to open a file that doesn't exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant