[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Welcome to ftpapi - TESTING
Sender: Jim Langston <jlangston@xxxxxxxxxxx>
I know that you have 2 options on FTP servers, either dir or ls, which give us 2 different types of lists.
ls gives simply a list of files.
dir gives quite a bit of information about files, library, size, date, time, type (*MEM or *FILE), but also gives full path names to files. Does the FTPAPI have a dir command, or does it have something where the programmer can issue a command to the ftp server directly and parse the results him/herself?
Regards,
Jim Langston
-----Original Message-----
From: Scott Klement [mailto:klemscot@xxxxxxxxxxxx]
On Mon, 30 Sep 2002, Richard B Baird wrote:
>
> 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...
Seems kinda silly to use the local FTP server when you can just use the
IFS API, though, doesn't it?
> 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...
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------