Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 5432 invoked from network); 10 Feb 2009 22:32:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Feb 2009 22:32:27 -0000 Received: (qmail 35185 invoked by uid 500); 10 Feb 2009 22:32:21 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 35064 invoked by uid 500); 10 Feb 2009 22:32:20 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 35041 invoked by uid 99); 10 Feb 2009 22:32:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Feb 2009 14:32:20 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Feb 2009 22:32:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 99917234C4B1 for ; Tue, 10 Feb 2009 14:31:59 -0800 (PST) Message-ID: <1808857719.1234305119627.JavaMail.jira@brutus> Date: Tue, 10 Feb 2009 14:31:59 -0800 (PST) From: "Rory Winston (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (NET-255) how to find a file on FTP server by providing filename In-Reply-To: <872937401.1234301159659.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/NET-255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12672431#action_12672431 ] Rory Winston commented on NET-255: ---------------------------------- Hi Jignesh Unfortunately its not possible at present to do this - recursive operations are not a mandated feature in the FTP specs. You could do a recursive listing and filter the results for the filename you are looking for, either by recursively searching all files with a 'directory' type, or by using the recursive listing feature added in 2.0 (if the server supports it). > how to find a file on FTP server by providing filename > ------------------------------------------------------ > > Key: NET-255 > URL: https://issues.apache.org/jira/browse/NET-255 > Project: Commons Net > Issue Type: Task > Affects Versions: 2.0 > Environment: Windows Vista Business, JRE 1.6 > Reporter: Jignesh Patel > > Hello, > I am using commons-net-2.0. After successful login on FTP server, is it possible to find any file by providing file name? One thing is sure - This file is not present directly under working directory. > For example, the working directory on FTP server is "uw/abc". The file (hello.txt) path is "uw/abc/unknown_folder/hello.txt". Here I know the file name itself but do not know under which folder it is residing. > Is there any method available under any class? > Any help would be appreciated. > Thank you > Jignesh -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.