Details
-
Wish
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0
-
None
-
None
-
jdk1.5.0_07 ; Linux
Description
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)
else if (getListHiddenFiles())
{ pathname = "-a "; } return pathname;
}
-----------------------------
Maybe you can integrate this patch in your next apache.commons.net version?