|
I've taken a look at this and played with it. (I use a slightly different
implementation than your patch, working through FTPClientConfig.) But the root functionality is the same as what you have done - add -a as the first argument. However, I am not sure how well supported this is, as you point out. Some servers, including one in our functional tests, include hidden files by default. I am inclined to go with the idea anyway, with suitable disclaimers in the docs, since nothing is hurt by this. Sure, I thought about the FTPClientConfig too, but
this javadoc text
suggerates me its not the best place. public FTPClientConfig() { this(SYST_UNIX); } looks like this is the case, isnt it? You and your autodetection. I wish I never developed that mechanism
But I suppose you're right. Without reworking the whole FTPClientConfig One idea would be to enable it in both places. Have a settable attribute in (In reply to comment #4)
> You and your autodetection. I wish I never developed that mechanism But it is sooo great stuff! I like it to see when computers are smart enough to do such nifty work Hmmm, it should be possible to archive it from VFS too, isnt it?
as long as listFiles wasnt called nothing bad happend. This is pretty much the same NET does now, just I wont bother you again with ... and there is no need to have this hidden-file configuration in two places.
I'll try it after the 1.0 release of VFS, hopefully I havent overlooked something. (In reply to comment #5)
> (In reply to comment #4) > > You and your autodetection. I wish I never developed that mechanism > But it is sooo great stuff! I like it to see when computers are smart enough to > do such nifty work > > Hmmm, it should be possible to archive it from VFS too, isnt it? > > * connect to the server > * create a FTPClientConfig with getSystemName() > * configure FTPClient with this FTPClientConfig(getSystemName()) > Yes, that would work, too. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
add method FTPClient.setListHiddenFiles(boolean)
It also extends the example ftp.java and allows to
-l list files
-la list hidden files