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

RE: Help.



Ditto what Mike said, but:

       // Skip special files "." and ".."
       localfile = *blanks;
       localfile = %subst(d_name: 1: d_namelen);
       if localfile = '.' or localfile = '..';
         iter;
       endif;

       // Get stat structure for local file
       localfile = %trim(localdir) + '/' + %trim(d_name);
       if stat(%trimr(localfile): %addr(mystat))<0;
         diagmsg('stat(): ' + %trim(d_name) +
             ': ' + %str(strerror(errno)));
       endif;

In the above, the last time (!) you initialize localfile, it looks like it's
not being done correctly.  Don't you mean:

   Localfile=%trim(localdir) + '/' + localfile ;

? since d_name, as you seemed to know a few lines up, needs to be limited to
d_namelen bytes?

Not sure that's the problem, but at least it'd be cleaner.

So what's the issue?

Dennis



-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Mike Wills
Sent: Wednesday, November 23, 2011 9:24 AM
To: HTTPAPI and FTPAPI Projects
Subject: Re: Help.

We can't help if you don't let us know what your problem is.

--
Mike Wills
http://mikewills.me



On Wed, Nov 23, 2011 at 7:11 AM, Ronnie <ronnie@xxxxxxxxxxxxxxxxxx> wrote:
>
> ----------------------------------------------------------------------
> - This is the FTPAPI mailing list.  To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> ----------------------------------------------------------------------
> -
>
>
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------