0
Given a file url:
URL pomUrl = new URL("https://gitlab/grupo/projeto/blob/develop/pom.xml");
How can I verify the existence of a sister file to this?
Something like:
public boolean temIrmao(String pomUrl) {
if (pomUrl.contains("index.html") return true
return false;
}
Use the exists method()
– Thalles Rangel
Gabriel, what do you mean by 'brother file'? Would be other files in the same directory?
– Joel Lobo
@Joellobo exactly!
– Gabriel Hardoim