Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 10751 invoked from network); 30 May 2006 17:39:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 May 2006 17:39:29 -0000 Received: (qmail 55354 invoked by uid 500); 30 May 2006 17:39:24 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 55283 invoked by uid 500); 30 May 2006 17:39:23 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 55271 invoked by uid 99); 30 May 2006 17:39:23 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 May 2006 10:39:23 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of dfs@savarese.org designates 204.91.10.133 as permitted sender) Received: from [204.91.10.133] (HELO savarese.org) (204.91.10.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 May 2006 10:39:21 -0700 Received: from mail.savarese.org (mail2.savarese.org [192.168.2.5]) by savarese.org (8.13.6/8.13.6) with ESMTP id k4UHcunG026502 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Tue, 30 May 2006 13:38:57 -0400 Received: from gandalf.savarese.org (gandalf.savarese.org [192.168.1.16]) by mail.savarese.org (8.13.6/8.13.6) with ESMTP id k4UHcwFW007002 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 30 May 2006 13:38:58 -0400 Received: from savarese.org by gandalf.savarese.org (8.13.6/8.13.6/Submit) with ESMTP id k4UHcvOc031236 for ; Tue, 30 May 2006 13:38:58 -0400 Message-Id: <200605301738.k4UHcvOc031236@gandalf.savarese.org> To: "Jakarta Commons Users List" X-Archive: no Subject: Re: [commons-net] Correcting a bug into org.apache.commons.net.ftp.FTPClient In-reply-to: Your message of "Mon, 29 May 2006 17:48:31 +0200." <5370f2820605290848y6fc163f2o13a6d25b714c8ea5@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 30 May 2006 13:38:57 -0400 From: "Daniel F. Savarese" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N In message <5370f2820605290848y6fc163f2o13a6d25b714c8ea5@mail.gmail.com>, "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 >LIST >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., ftp.dell.com), I had no problem listing path names containing spaces using the unmodified FTPClient. daniel -#-#-#-#-| Sleep and The Traveller |-#-#-#-#-#-#-#- http://www.savarese.org/ 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 -- http://www.sleepandthetraveller.com/ # http://www.savarese.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org