Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
5.1k views
in Java FTP by
Following is my problem description, please suggest a solution:

Class: FTPClient
Function: get(java.lang.String localPath, java.lang.String remoteFile)
Problem: I want to grab a file at FTP server by providing wildcards, as I don

1 Answer

0 votes
by (162k points)
Easiest way is to use dirDetails() on the directory to get a file list, filter what you want, and then get the files one by one. This is what mget does.

Note that most FTP servers will support using a filemask instead of a directory name - so try supplying that,

e.g. dirDetails("x*y.txt")

Following is my problem description, please suggest a solution:

Question: Is there another function that reflects FTPs

Categories

...