It wasn't clear to me from your previous post how you were getting a valid
directory on the site prior to your function call. The error code returned,
as I understand it, means you don't have permissions.
Does the error occur every other time, or on particular paths?
It wasn't clear to me from your previous post how you were getting a valid
directory on the site prior to your function call. The error code
returned,
as I understand it, means you don't have permissions.
Does the error occur every other time, or on particular paths?
The error occurs every-other time. The path is contained in an object
property, and since you raise the question, I examined it in the debugger.
The path is correct, and the credentials are correct -- the same ones that
work every-other time
The connection does eventually succeed. It's as if the first call succeeds,
the second attempt fails, but "fixes" the connection somehow, and then the
3rd attempt succeeds.
I added the following loop code, and it seems to sidestep the problem. The
getResponse() throws an exception, it's caught, and I try again, succeeding.
If you post a compilable piece of code that demonstrates the
problem with a FTP server that is public available, then I am
pretty sure that you will get a solution/workaround.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.