[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

question on ftp_list - get *next 100?



Sender: "Richard B Baird" <rbaird@xxxxxxxxxxxxxxxxxxxxx>


Hey all,

have any of you run into a situation where you need to list files in an FTP
directory, but you have no idea how many files may be returned?

ie, right now, i'm set up to get only 100 files, -

if    ftp_list(ftp: '': 100: %addr(Files): FilesFound) < 0

but there are more to list, but I have no way of knowing for sure how many.
I'd like to avoid making the array big enough to satisfy any number that
might be returned.

so my question (and maybe you, Scott are the best one to answer this),

is there a way to modify FTP_list to say:  list 100 file names, starting at
file name 101? or 201?  (i.e. passing in a position to field)

(or to make it backwards compatable, create a new function, or make the
parm optional)

Thanks,

Rick

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------