commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rory Winston (JIRA)" <j...@apache.org>
Subject [jira] Commented: (NET-255) how to find a file on FTP server by providing filename
Date Tue, 10 Feb 2009 22:31:59 GMT

    [ 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.


Mime
View raw message