``` Thread.currentThread().contextClassLoader.getR...
# getting-started
n
Copy code
Thread.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