SyntaxFix
Write A Post
Hire A Developer
Questions
Don't use File constructor with String. This may not work! Instead of this use URI:
File f = new File(new URI("file:///"+filePathString.replace('\\', '/'))); if(f.exists() && !f.isDirectory()) { // to do }