Re: [twsocket] How to handle a failed CWD with FTPClient...

2006-10-11 Thread Francois Piette
<[EMAIL PROTECTED]> To: Sent: Wednesday, October 11, 2006 9:15 AM Subject: Re: [twsocket] How to handle a failed CWD with FTPClient... > Thanks for all your help, guys. Yes that makes a lot of sense. I didn't > realise CWD only changed directory RELATIVE to the current directory.

Re: [twsocket] How to handle a failed CWD with FTPClient...

2006-10-11 Thread DZ-Jay
On Oct 11, 2006, at 03:15, rick cusimano wrote: > Thanks for all your help, guys. Yes that makes a lot of sense. I > didn't > realise CWD only changed directory RELATIVE to the current directory. > > I've tried adding a '/' to the start of the path, but that didn't work. > I've also tried a '\

Re: [twsocket] How to handle a failed CWD with FTPClient...

2006-10-11 Thread rick cusimano
Thanks for all your help, guys. Yes that makes a lot of sense. I didn't realise CWD only changed directory RELATIVE to the current directory. I've tried adding a '/' to the start of the path, but that didn't work. I've also tried a '\', but that didn't work either. Whats the easiest way of

Re: [twsocket] How to handle a failed CWD with FTPClient...

2006-10-10 Thread Francois PIETTE
-- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Tuesday, October 10, 2006 8:34 PM Subject: Re: [twsocket] How to handle a failed CWD with FTPClient... > >> So you should first change the working directory >> to t

Re: [twsocket] How to handle a failed CWD with FTPClient...

2006-10-10 Thread [EMAIL PROTECTED]
> So you should first change the working directory > to the "root" path and then try the second CWD > command with the "a\b\c\d" HostDirName ... No, that would require an extre round-trip. As others have pointed out, you should use "absolute" paths by starting all your paths with a '/' (or '\'

Re: [twsocket] How to handle a failed CWD with FTPClient...

2006-10-10 Thread Marcelo Grossi
ssi - Original Message - From: "rick cusimano" <[EMAIL PROTECTED]> To: Sent: Tuesday, October 10, 2006 2:22 PM Subject: Re: [twsocket] How to handle a failed CWD with FTPClient... > Hello, > > Thanks for pointing out that I can retrieve the last response from the &

Re: [twsocket] How to handle a failed CWD with FTPClient...

2006-10-10 Thread Gunnar
Hi, Current dir is "\" > HostDirName = '1\2\3\'; > Cwd; // No Failure of course > HostDirName = 'a\b\c\d\'; > Cwd; // ERROR: 550 a\b\c\d\ : The system cannot find the path specified. Haha, no surprise. The server is now looking for \1\2\3\a\b\c\d, and that porbably doesn't exist. Set hostdir

Re: [twsocket] How to handle a failed CWD with FTPClient...

2006-10-10 Thread Francois PIETTE
PROTECTED] http://www.overbyte.be - Original Message - From: "rick cusimano" <[EMAIL PROTECTED]> To: Sent: Tuesday, October 10, 2006 7:22 PM Subject: Re: [twsocket] How to handle a failed CWD with FTPClient... > Hello, > > Thanks for pointing out that I can retr

Re: [twsocket] How to handle a failed CWD with FTPClient...

2006-10-10 Thread Gies,Brad
:[EMAIL PROTECTED] On > Behalf Of rick cusimano > Sent: Tuesday, October 10, 2006 1:23 PM > To: twsocket@elists.org > Subject: Re: [twsocket] How to handle a failed CWD with FTPClient... > > Hello, > > Thanks for pointing out that I can retrieve the last response from the > s

Re: [twsocket] How to handle a failed CWD with FTPClient...

2006-10-10 Thread rick cusimano
Hello, Thanks for pointing out that I can retrieve the last response from the server, I didn't realise Cwd results came just as a response and not as an event. Ok so this is what happens: HostDirName = '1\2\3\'; Cwd; // No Failure HostDirName = 'a\b\c\d\'; Cwd; // ERROR: 550 a\b\c\d\ : The sy

Re: [twsocket] How to handle a failed CWD with FTPClient...

2006-10-10 Thread Francois Piette
... -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier framework, freeware) http://www.overbyte.be - Original Message - From: "rick cusimano" <[EMAIL PROTECTED]> To: Sent: Monday, October 09, 2006 10:53 PM Subject

Re: [twsocket] How to handle a failed CWD with FTPClient...

2006-10-09 Thread Arno Garrels
rick cusimano wrote: > Could anyone suggest a resolution or a better way to debug what's > going on? If you do not provide the error number as well as the error text, how should anybody know what's going on? When CWD failes log FtpClient1.LastResponse as well as FtpClient1.ErrorMessage. ---

Re: [twsocket] How to handle a failed CWD with FTPClient...

2006-10-09 Thread Angus Robertson - Magenta Systems Ltd
> Just to reiterate, I'm trying to do a recursive download from an > FTP Server to basically do a full backup. It works fine most of > the time, but occasionally the Cwd command fails to change > directory causing files to be downloaded in the wrong place. Try using my File Transfer Components

Re: [twsocket] How to handle a failed CWD with FTPClient...

2006-10-09 Thread rick cusimano
As requested I've done some more testing with this, however I'm not getting any closer. Just to reiterate, I'm trying to do a recursive download from an FTP Server to basically do a full backup. It works fine most of the time, but occasionally the Cwd command fails to change directory causing

Re: [twsocket] How to handle a failed CWD with FTPClient...

2006-10-08 Thread Francois PIETTE
> Just to clarify, these are directories that I KNOW exist - I'm doing a > recursive download from an FTP site. How would you recommend I recover > from > a failed CWD command? I can't recommand anything before knowing the exact error. Contribute to the SSL Effort. Visit http://www.overbyte.be/

Re: [twsocket] How to handle a failed CWD with FTPClient...

2006-10-08 Thread Gunnar
> Just to clarify, these are directories that I KNOW exist - I'm doing a > recursive download from an FTP site. How would you recommend I recover from > a failed CWD command? That doesn't mean that you are allowed to access these directories. If CWD fails, there's a reason for that, usually on

Re: [twsocket] How to handle a failed CWD with FTPClient...

2006-10-08 Thread rick cusimano
MAIL PROTECTED]> Subject: Re: [twsocket] How to handle a failed CWD with FTPClient... To: "ICS support mailing" Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Rick, if CWD fails, why do you expect it cou

Re: [twsocket] How to handle a failed CWD with FTPClient...

2006-10-08 Thread Francois PIETTE
-- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: "rick cusimano" <[EMAIL PROTECTED]> To: Sent: Sunday, October 08, 2006 12:42 PM Subject: [twsocket] How to handle a faile

Re: [twsocket] How to handle a failed CWD with FTPClient...

2006-10-08 Thread DZ-Jay
On Oct 8, 2006, at 06:42, rick cusimano wrote: > I've been having some issues with FTPClient where sometimes, on some > servers, it would fail to change the working directory (thanks to > whoever > pointed that out btw) Perhaps its a permission issue? If so, you won't be able to change to that

Re: [twsocket] How to handle a failed CWD with FTPClient...

2006-10-08 Thread Gunnar
Rick, if CWD fails, why do you expect it could work if you just try it again? -gunnar - Original Message - From: "rick cusimano" <[EMAIL PROTECTED]> To: Sent: Sunday, October 08, 2006 12:42 PM Subject: [twsocket] How to handle a failed CWD with FTPClient... >

[twsocket] How to handle a failed CWD with FTPClient...

2006-10-08 Thread rick cusimano
Hi, I've been having some issues with FTPClient where sometimes, on some servers, it would fail to change the working directory (thanks to whoever pointed that out btw) I've been trying to change the code to test for this and I thought I had it cracked, but its still not quite right. This is