 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
David Ayre Guest
|
Posted: Fri Mar 17, 2006 5:03 pm Post subject: IdFTP ChangeDir problem |
|
|
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 |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Fri Mar 17, 2006 7:03 pm Post subject: Re: IdFTP ChangeDir problem |
|
|
"David Ayre" <davidcayre (AT) ntlworld (DOT) com> wrote in message
news:441ae4df$1 (AT) newsgroups (DOT) borland.com...
| Quote: | 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.
| Quote: | 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 |
|
| Back to top |
|
 |
David Ayre Guest
|
Posted: Sat Mar 18, 2006 10:03 am Post subject: Re: IdFTP ChangeDir problem |
|
|
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 (AT) no (DOT) spam.com> wrote:
| Quote: |
"David Ayre" <davidcayre (AT) ntlworld (DOT) com> wrote in message
news:441ae4df$1 (AT) newsgroups (DOT) 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
|
|
|
| Back to top |
|
 |
David Ayre Guest
|
Posted: Sat Mar 18, 2006 11:03 am Post subject: Re: IdFTP ChangeDir problem |
|
|
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 (AT) ntlworld (DOT) com> wrote:
| Quote: |
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 (AT) no (DOT) spam.com> wrote:
"David Ayre" <davidcayre (AT) ntlworld (DOT) com> wrote in message
news:441ae4df$1 (AT) newsgroups (DOT) 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
|
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Sun Mar 19, 2006 12:03 am Post subject: Re: IdFTP ChangeDir problem |
|
|
"David Ayre" <davidcayre (AT) ntlworld (DOT) com> wrote in message
news:441bcca6$1 (AT) newsgroups (DOT) borland.com...
| Quote: | Sub1 and Sub2 are both subdirectories of the root.
|
Then both ChangeDir('/Sub2') and ChangeDir('../Sub2') (while in Sub1) should
be working fine.
| Quote: | 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 |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|