commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 37446] - [net] FTPClient.listFiles(filename) return empty array with long file name
Date Wed, 16 Nov 2005 01:49:19 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37446>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37446


scohen@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From scohen@apache.org  2005-11-16 02:49 -------
Commons-net ftp does not claim to do things that plain FTP doesn't.  It's merely
an implementation of an FTP client in java.  This is the FTP server's behavior.
 To see this, please connect to this same server using any FTP client software
and type in 

LIST iSeriesNuovo_ESQy140535 - anagrafica titoli per nome.txt

(on some FTP clients such as the one that comes with Windows you may have to type in
   DIR iSeriesNuovo_ESQy140535 - anagrafica titoli per nome.txt
instead.)

You should observe the same results.  The long name (actually the problem is
caused not by the length of the name but by the spaces in the middle) will not
be returned but the short one will.

Now try

LIST "iSeriesNuovo_ESQy140535 - anagrafica titoli per nome.txt"

It should work.

In your java code, you might have to write:

ftpclient.listFiles(
  "\"iSeriesNuovo_ESQy140535 - anagrafica titoli per nome.txt\"");




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message