How can I get a list of files inside the resources
folder in Java?
This is not a resources
folder from test
folder, also my .jar
file doesn't contain the resources
folder so I don't think ZipInputStream
is a solution? (I'm using maven to build my jar
)
I tried Enumeration<JarEntry> entries = jarFile.entries();
to list all the file, but how can I efficiently filter out entries
that's not from the resources
folder? (such as class file or folder contains class files...)
Thank you!