You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Michael Labicki (JIRA)" <ji...@apache.org> on 2007/04/13 14:27:16 UTC
[jira] Created: (NET-157) Get "hidden files" over ftp, using
commons-vfs
Get "hidden files" over ftp, using commons-vfs
----------------------------------------------
Key: NET-157
URL: https://issues.apache.org/jira/browse/NET-157
Project: Commons Net
Issue Type: Wish
Affects Versions: 2.0
Environment: jdk1.5.0_07 ; Linux
Reporter: Michael Labicki
Fix For: 2.0
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?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org