*
* @param file
* Upper directory to be read
*/
private void readSubroots(final String file) {
FileConnection fc = null;
try {
fc = (FileConnection) Connector.open(file);
// Create a file holder from the FileConnection so that the
// connection is not left open
final FileHolder fileholder =
new FileHolder(file, fc.isDirectory());
_model.addRow(fileholder);
} catch (final IOException e) {
System.out.println("Connector.open(" + file + ") threw "
+ e.toString());
} finally {
if (fc != null) {
// Everything is read. Close the connection.
try {
fc.close();
fc = null;
} catch (final Exception ioex) {
}
}
}