× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Thanks Kevin and Buck - exactly the info I was looking for.

Thanks
Bob

-----Original Message-----
Kevin Bucknum

ftp_dir returns the whole directory line and stores the results in an array.
ftp_dirraw returns the whole directory line and calls a procedure that you specify.
ftp_list returns just the filename and stores the results in an array.
ftp_lstraw returns just the filename and calls a procedure that you specify.

Look at the sample program TEST2SESS. It opens two connections, on that does a directory listing, and one that downloads the files. You could basically use that as is just adding the logic to decide what files you want, or you could get your listing in a file or array, and >then go back and download and delete.

-----Original Message-----
Buck Calabro

Check the examples in LIPFTP/QRPGLESRC, especially TESTMIRIN and EX6TREEFRM. These use ftp_list to return a list of file names into an array.

ftp_dir returns a list of files, dates, etc into an array. It uses ftp_dirraw which uses LIST and a callback to format each line.
ftp_list returns a list of file names into an array. It uses ftp_listraw which uses NLST and a callback to format each line.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.