This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
directory listing in core protocol
- From: Ben Tatham <bentatham at nanometrics dot ca>
- To: java at gcc dot gnu dot org
- Date: Fri, 30 Mar 2007 17:00:03 -0400
- Subject: directory listing in core protocol
Hello All,
Is it possible to get a directory listing of files from the core
protocol? Currently, I can't even getClass().getResource() to return a
valid URL for a directory, but it does work if I specify a file.
For example, if I have the following in my jar when I compile
foo
- someResource.txt
adir
- a.txt
- b.txt
I can get an URL for foo/someResource.txt, and I can open an InputStream
and get the contents.
But if I try getClass().getResource("/foo/adir"), I get null.
Thanks,
Ben