I don't deal with Grails, but since it runs on top of the Servlet API, you can also find this answer (steering in the right direction).
ServletContext. GenericServlet -inherited getServletContext(). ServletContext#getRealPath(), - ( , java.io.File ).
String absolutePath = getServletContext().getRealPath("albums/1");
File file = new File (absolutePath);
java.io.File, , Tomcat/bin, .
, : webapp, , webapp ! webapp, - . , ( ), , .