Article View: borland.public.cppbuilder.internet.socket
Article #2533Re: IdFTP ChangeDir problem
From: David Ayre
Date: Sat, 18 Mar 2006 08:52
Date: Sat, 18 Mar 2006 08:52
51 lines
2487 bytes
2487 bytes
OK Remy,
Panic over. It was a stupid mistake, as usual. I got the folders
the wrong way round.
Thanks for your patience.
David
"David Ayre" <davidcayre@ntlworld.com> wrote:
>
>Hi Remy,
>
>Sub1 and Sub2 are both subdirectories of the root. If I change
>directory to sub1 I can put and get files from it.
>If I try to change directory to the other sub-directory, and try
>to 'Put' a file to it, I get an error telling me that an
>exception has been raise type EIdProtocolReplyError with message
>'log.dbf'Append/Restart not permitted.
>This happens on the following line:-
>IdFTP1->Put("c:\\awsmon\\data\\log.dbf","log.dbf",true);
>I have tried changing directory back to the root first, but
>get the same error each time. Sub2 is empty so I am not trying
>to append to an existing file, however, there is a 'log.dbf'
>file in Sub1 so it looks as if it hasn't change directory.
>
>Thanks,
>
>David
>
>"Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> wrote:
>>
>>"David Ayre" <davidcayre@ntlworld.com> wrote in message
>>news:441ae4df$1@newsgroups.borland.com...
>>
>>> I then want to change to subfolder /Sub2. Do I do this?
>>> IdFTP1->ChangeDir("/Sub2"); or should it be"./Sub2" or "../Sub2".
>>
>>That depends on where Sub2 is actually located in relation to Sub1. Please
>>provide more details.
>>
>>> Ive tried all combinations I can think of but to no avail.
>>
>>What EXACTLY is happening? Are you getting an error? If so, what is it?
>>
>>
>>Gambit
>>
>>
>
Technical Details
Message-ID:
<441bd86a$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<441ae4df$1@newsgroups.borland.com> <441afbd0@newsgroups.borland.com> <441bcca6$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,5108d62bd1477dc8 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "David Ayre" <davidcayre@ntlworld.com> Sender: "David Ayre" <davidcayre@ntlworld.com> Reply-To: "David Ayre" <davidcayre@ntlworld.com> Subject: Re: IdFTP ChangeDir problem Newsgroups: borland.public.cppbuilder.internet.socket X-User-Info: 62.252.224.18 X-Forwarded-For: 86.14.92.125 References: <441ae4df$1@newsgroups.borland.com> <441afbd0@newsgroups.borland.com> <441bcca6$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <441bd86a$1@newsgroups.borland.com> Date: 18 Mar 2006 01:52:42 -0700 X-Trace: newsgroups.borland.com 1142675562 207.105.83.66 (18 Mar 2006 01:52:42 -0700) Lines: 52 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail