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

Re: Resolving case with FTP



Sender: Scott Klement <klemscot@xxxxxxxxxxxx>


All FTPAPI does is send the same string to the server that you sent to
FTPAPI.   If you send '*.CSV' then it sends 'LIST *.CSV' to the server.

It's the server that decides whether to show both upper & lower or not,
not FTPAPI.



On Mon, 24 Nov 2003, Robin Coles wrote:
>
> I'm having a problem using ftp_list, although I think it may be a FTP
> thing rather than FTPAPI.
>
> I'm using: If ftp_list(ftp:'*.CSV':50:%Addr(incoming):num_files) < 0;
>
> I've got two files on the FTP server: UPPER.CSV and lower.csv.  If I use
> the AS/400 as a server and pass '*.CSV' or '*.csv' I get both files.
>
> If I do the same thing using the Windows NT server, I get whichever one
> matches the case I send, i.e. '*.CSV' will give me UPPER.CSV but not
> lower.csv.  Is there any way to tell either FTPAPI or the remote server
> that I don't care about the case, or do I have to remove the filter,
> retrieve all of the files and do it myself?  These files will be dumped
> on the FTP server by various customers so I can't guarantee what case
> the names will be in.
>
> Cheers
> Rob
>
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list.  To unsubsribe from the list send mail
> to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
> -----------------------------------------------------------------------
>
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------