Nikky
09/08/2018, 11:27 PMThread.currentThread().contextClassLoader.getResourceAsStream(resource)
?: resource::class.java.getResourceAsStream(resource)
?: throw FileNotFoundException(resource)
but if you point it to a actual file .. thee input stream you get is the content
if you point it at a folder in the resources you get a list of files and folders