score:7

Accepted answer

There is method getFile(relateivePath: String): File on Play object and also in the Application class which returns file relative to application root directory. In your case:

Play.getFile("public/images")

return File object, which represent public/images/directory. You can call list or listFiles on it to get contents of the directory.


Related Query

More Query from same tag