[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Welcome to ftpapi - TESTING
Sender: "Richard B Baird" <rbaird@xxxxxxxxxxxxxxxxxxxxx>
Scott,
see inline questions, marked by >><<
>
> I've dabbled. I was hoping to use the ftp_dir(raw?) instead. I can
> 'connect' to the local ftp server (i.e. connect to itself). But, only if
I
> can distinguish between a file and a directory.
>
Well, I guess you could distinguish between a file and directory by doing
an FTP_chdir() call. If the call succeeds, it's a directory, otherwise
it's not...
>><< the data returned by ftp_dir (at least from another iseries)
>><< includes a type (*DIR or *STMF) the data stream.
>><< isn't that enough? or is there no guarantee that any
>><< particular ftp server would return that data?
Seems kinda silly to use the local FTP server when you can just use the
IFS API, though, doesn't it?
>><< Yes, maybe, but I've done sillier things. I guess that the
>><< reason i wanted to do it that way was to keep it simple, because
>><< I'm setting this thing up so that it could push or pull, and
concievably
>><< even make copies from one spot on the IFS to another, on the same
>><< iseries. ftp would probably be just as fast, and I can use the
>><< same code whether I'm pushing or pulling the directory structure.
> Let me dabble a little more and get back to you. Right now, i'm just
doing
> a little proof-of-concept stuff - trying some different stuff to see what
I
> get, and I'm really not deep enough into the design to offer up more
> specific questions.
I'll throw together two sample programs.... One that shows how to take
a local directory structure and "mirror" it to an FTP server, and
one that downloads a directory structure from an FTP server to the
AS/400. (Which is the same thing, but in the opposite direction)
I'll add them to the FTPAPI distribution, so everyone can benefit from
them...
>><< That would be great! you have time for this? <lol>
Thanks again,
Rick
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------