Thread View: borland.public.cppbuilder.internet.socket
5 messages
5 total messages
Started by David Ayre
Fri, 17 Mar 2006 15:33
IdFTP ChangeDir problem
Author: David Ayre
Date: Fri, 17 Mar 2006 15:33
Date: Fri, 17 Mar 2006 15:33
13 lines
1206 bytes
1206 bytes
Hi,
I am trying to retrieve data from one subfolder and send to another.
If I use IdFTP1->ChangeDir("/Sub1"); this is fine and I can
Get data from this folder.
I then want to change to subfolder /Sub2. Do I do this?
IdFTP1->ChangeDir("/Sub2"); or should it be"./Sub2" or "../Sub2".
Ive tried all combinations I can think of but to no avail.
Cheers,
David
Re: IdFTP ChangeDir problem
Author: Remy Lebeau (TeamB)
Date: Fri, 17 Mar 2006 18:07
Date: Fri, 17 Mar 2006 18:07
16 lines
1318 bytes
1318 bytes
"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
Re: IdFTP ChangeDir problem
Author: David Ayre
Date: Sat, 18 Mar 2006 08:02
Date: Sat, 18 Mar 2006 08:02
39 lines
2220 bytes
2220 bytes
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
>
>
Re: IdFTP ChangeDir problem
Author: 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
>>
>>
>
Re: IdFTP ChangeDir problem
Author: Remy Lebeau (TeamB)
Date: Sat, 18 Mar 2006 23:31
Date: Sat, 18 Mar 2006 23:31
21 lines
1708 bytes
1708 bytes
"David Ayre" <davidcayre@ntlworld.com> wrote in message
news:441bcca6$1@newsgroups.borland.com...
> Sub1 and Sub2 are both subdirectories of the root.
Then both ChangeDir('/Sub2') and ChangeDir('../Sub2') (while in Sub1) should
be working fine.
> 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.
There is your answer then. The user account that you loged in with does not
have permission to upload files into Sub2. That has nothing to do with
ChangeDir(), or even with TIdFTP at all. That is a configuration issue on
the server side.
Gambit
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads