'Node' is the path of the directory from where I want to read the contents of the file.
I tried the following example but it is failing at node.isDirectory()
. Thanks in advance for help
File node = file:\\111.11.11.111\\opt\\MyDir
if (node.isFile()) {
filelist.add(generateZipEntry(node.getAbsoluteFile().toString()));
}
if (node.isDirectory()) {
String[] subNote = node.list();
for (String filename : subNote) {
generateFileList(new File(node, filename));
}
}