[Solved] Java: Delete a file starting with “.” [duplicate]
[ad_1] Use the nio package instead : import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; Path p = Paths.get(“/tmp/.minecraft”); if(!Files.exists(p)){ Files.createFile(p); } if(Files.exists(p)){ Files.delete(p); } 10 [ad_2] solved Java: Delete a file starting with “.” [duplicate]