Add a static method to DirectoryList called getFileInfo:
public static String getFileInfo(File afile)
The getFileInfo returns a String with information about afile in the
following format:
pathname [attributes] x bytes last modified: Sat Sep 18 07:00:36 CDT 2004
Possible attributes are D for directory, R for readable, W for
writable and H for hidden.
For example, a directory D:/images on a windows machine gives:
d:\images [ D R W ] 0 bytes last modified: Sat Sep 18 09:36:36 CDT 2004
Notice that the backslash, which is used as a pathname separator in Windows, is converted to
a forward slash.
The file IncomingLines.gif in the images directory has information:
d:\images\IncomingLines.gif [ R W ] 9060 bytes last modified: Thu Feb 24 13:03:10 CST 2000