Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 9088 invoked from network); 16 Nov 2006 23:33:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Nov 2006 23:33:03 -0000 Received: (qmail 57221 invoked by uid 500); 16 Nov 2006 23:33:11 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 57109 invoked by uid 500); 16 Nov 2006 23:33:11 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 56922 invoked by uid 99); 16 Nov 2006 23:33:10 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Nov 2006 15:33:10 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Nov 2006 15:32:59 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 55C7F714327 for ; Thu, 16 Nov 2006 15:32:39 -0800 (PST) Message-ID: <27755570.1163719959348.JavaMail.jira@brutus> Date: Thu, 16 Nov 2006 15:32:39 -0800 (PST) From: "Felix Wong (JIRA)" To: commons-dev@jakarta.apache.org Subject: [jira] Created: (NET-143) FTPClient.listFiles(String pathname) returns no entry on RH AS 4 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org FTPClient.listFiles(String pathname) returns no entry on RH AS 4 ---------------------------------------------------------------- Key: NET-143 URL: http://issues.apache.org/jira/browse/NET-143 Project: Commons Net Issue Type: Bug Affects Versions: 1.4 Final Environment: RedHat AS 4 Reporter: Felix Wong The following code snippet works fine on RedHat AS 3 ftp server. However, it only works on the top level of a RedHat AS 4 ftp server (e.g. ftp://myftpserver) but not on any subdirectory. ftpClient.listFiles(url.getPath()) return an empty array on any subdirectory (e.g. ftp://myftpserver/abc). URL url = new URL(urlString); FTPClient ftpClient = new FTPClient(); FTPFile[] ftpFiles; ftpClient.connect(url.getHost()); ftpClient.login(username, password); int rc = ftpClient.getReplyCode(); if (!FTPReply.isPositiveCompletion(rc)) { throw new Exception(ftpClient.getReplyString()); } ftpFiles = ftpClient.listFiles(url.getPath()); -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org