I have a web application in a servlet container.
How can I get a list of files inside a security folder inside a controller / servlet?
I tried something like this (which doesn't work):
File security_image_dir = new File("/beta/images/security/");
String security_images[] = security_image_dir.list();
source
share