How about something like:
File sourceDirectory = new File("/path/to/files");
File[] files = sourceDirectory.listFiles();
Hi guys,
I have a modular project set up where files are uploaded into the
resources
folder from the admin module. The web module needs to access the
resource
folder in the admin module(webapp/resources/images). Is it possible to
access a directory in the admin module without going through a
database.
getServletContext().getRealPath("/resources/images/"); gets me access
to the
files provided im accessing it from within the admin module but I would
like
to access it from the other module.
Thanks for your time.
..kace
--
View this message in context:
http://www.nabble.com/accessing-a-folder-in-modular-setup-tf4680333s2369.html#a13373650
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]