You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Rory Winston (JIRA)" <ji...@apache.org> on 2008/02/18 01:10:36 UTC
[jira] Closed: (NET-157) Get "hidden files" over ftp, using
commons-vfs
[ https://issues.apache.org/jira/browse/NET-157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rory Winston closed NET-157.
----------------------------
Resolution: Fixed
> 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.