Paul Clapham wrote:And what will you do if the URL doesn't represent a file? Like for example, if you (as you should) put your resources into a jar?
I have my resources in a jar.
This is for a special method getFile(
String path) which fetches a file from resources (the jar), but i need support to pass a folder in addition to passing a filename.