I was trying to show "hidden files" by using commons-vfs, but I found no solution to do this by the way.
So I have patched the FTPClient - Class in commons-net 2.0.
The Default-Constructor sets the "__listHiddenFiles" property to false. I change the property to true.
-----------------------------
"__listHiddenFiles = true;"
-----------------------------
The next necessary change I made, was in the "getListArguments" method:
-----------------------------
protected String getListArguments(String pathname) {
if (getListHiddenFiles() && pathname != null) {
StringBuffer sb = new StringBuffer().append("-a ").append(pathname);
pathname = sb.toString();
} else if (getListHiddenFiles()) {
pathname = "-a ";
}
return pathname;
}
-----------------------------
Maybe you can integrate this patch in your next apache.commons.net version?