commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bjorn Townsend (JIRA)" <>
Subject [jira] Commented: (NET-165) FTP: using "stat" to retrieve dirlisting over control connection
Date Wed, 19 Sep 2007 05:05:43 GMT


Bjorn Townsend commented on NET-165:


Looking at the trunk I see a FTPClient.getStatus() method which could be used instead of FTPClient.listFiles()
at the coder's discretion.  Is there any reason why simply using getStatus() instead is not


> FTP: using "stat" to retrieve dirlisting over control connection
> ----------------------------------------------------------------
>                 Key: NET-165
>                 URL:
>             Project: Commons Net
>          Issue Type: Wish
>            Reporter: Stefan Tauner
>            Priority: Minor
> dirlisting over a data connection with "list" is usually quite slow in comparision with
"stat" because the latter doesnt need to set up a data connection but gets all data back through
the control connection.
> the behaviour is defined in rfc 959 (_the_ ftp rfc) on page 33 ("STATUS (STAT)").
> i am new to commons net, so i am not sure whats the best way to implement this, but i
think an option to turn the existing FTPClient.listFiles() methods into using stat instead
of list would be the best option. that way it would not break any existing code and the upgrade
would be easy too...
> i am not sure how many server implementations are actually supporting this, but mine
does and since it would be optional (and non default) behaviour, i dont think thats a problem

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message