getResourceListing
public String[] getResourceListing(Class<?> clazz,
String path)
throws URISyntaxException,
IOException
List directory contents for a resource folder. Not recursive. This is
basically a brute-force implementation. Works for regular files and also
JARs.
Author: Greg Briggs
- Parameters:
clazz - Any java class that lives in the same place as the resources
you want.
path - Should end with "/", but not start with one.
- Returns:
- Just the name of each member item, not the full paths.
- Throws:
URISyntaxException
IOException