I would like to find out if a particular directory has a file in it already in Java, specifically I need to check if the file exists in a given directory using Java code.
However, I need the code to not crash and burn due to the various permissions / file rights and how it can be used. It's going in a cross platform app. I've seen the question checking if file exists in a specific directory this isn't what I'm needing however.
Any kind soles with some clean Java code ideas.. (sorry if my English is bad I'm not American).
Update: Found what I needed eventually https://javajudo.com/how-to-check-if-a-file-exists-in-a-directory-in-java/
Thanks, for the help.