ShareCopy to ClipboardRawPreviewimport java.io.File; File f = new File(filePathString); if(f.exists()) { // the file exists } Test if a file exists019juli1fileexistsJava Public RecipesTest if a file exists on the filesystem Check if the path exists on the filesystem0 CommentsAdd CommentLog in to add a comment