commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel F. Savarese" <>
Subject Re: [commons-net] Correcting a bug into
Date Tue, 30 May 2006 17:38:57 GMT

In message <>, "s[e]
th & h[o]lth" writes:
>I meet a problem when using FTPClient.listFiles(String pathname) with a
>space-char inside pathname.
>I looked at the problem and i saw that many ftp clients implements this
>function like :
>CWD target_dir
>instead of
>LIST target_dir

I don't think this is a bug.  I believe the ability to list path names
containing spaces is a function of the server, not the client.  For example,
I tested your approach against an NcFTPd server and it didn't work.  In
fact, I couldn't list files containing spaces without using a glob expression.
Yet, on a server that reports itself as "Microsoft FTP Service" (e.g.,, I had no problem listing path names containing spaces using
the unmodified FTPClient.


-#-#-#-#-| Sleep and The Traveller |-#-#-#-#-#-#-#-
In distant lands, I hear the call of my home.     #     s a v a r e s e
Yet my work is not done.  My journey's just begun.-    software research
 --          #

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message