Question :
I’m trying to check if a directory entered in a JTextField
exists or not. I tried to use Files.notExists()
but the first argument must be of type Path
and I could not figure out how to convert from String
.
String caminho = txtDirIndexado.getText().replace("", ""\"")
Answer :