for (String name : smbFile.list()) {
files.add(getFile(name));
}
return files;
} catch (MalformedURLException exc) {
throw new RuntimeIOException(format("Cannot list directory %s: %s", smbFile.getUncPath(), exc.toString()), exc);
} catch (SmbException exc) {
throw new RuntimeIOException(format("Cannot list directory %s: %s", smbFile.getUncPath(), exc.toString()), exc);
}
}