Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.1k views
in Java FTP by (580 points)
I am using free version of edtftpj for long time.
Now problem i am facing is to list the files on a remote machine based on a filter.
if a file name matches the filter then only it should be listed.
Is there any way i can do it using this library ?

2 Answers

0 votes
by (162k points)
You could try dirDetails("*.txt").

It is up to the server whether it interprets this as a file filter. We can't control the server's behavior.
0 votes
by (580 points)
I have nothing to do with if server interprets wild card as FilenameFilter or not but what my ultimate aim is to select only those files that actually start with "ABC".
So as per your reply, writing ABC* should work. I ll check it.
Is there any way by which i can limit maximum no of files in listing or Or if suppose i want to list only those files that actually have less than a specific size then what should be done.?
Actually FilenameFilter does both the things. Implementing this interface will allow filter based on naming pattern as well as #of files. So i was looking for such an option.

Thanks Anyway.

Categories

...