Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

TWebCopy

 Post Reply Post Reply
Author
Thomas Marshall View Drop Down
New Member
New Member
Avatar

Joined: 09 Jun 2011
Posts: 10
Post Options Post Options   Quote Thomas Marshall Quote  Post ReplyReply Direct Link To This Post Topic: TWebCopy
    Posted: 26 Nov 2019 at 4:47am
I am having trouble with FTPDelete using WebCopy 2.4.0.1.  I as able to download multiple files and now I want to delete them, one at a time.

   webcopy1.Items.Clear;
    webcopy1.DlgCaption := 'Deleting downloaded file...';
   with webcopy1.Items.Add do
      begin
         FTPHost := sHost;
         FTPuserID := sUser;
         FTPpassword := sPassword;
         Protocol := wpFTPDelete;
         TargetDir := sFTPDir;
         URL := sFileName;
      end;
   Webcopy1.Execute;

I do not get any error messages, but the file does not delete.  I can sign into the same FTP site with WS_FTP Pro and delete the files manually without a hitch.  

BTW:
sFTPDir := 'OrderExport';
sFileName := 'OrderDetail.txt';

Any idea what is wrong?
Thanks,
Marshall



Back to Top
Bruno Fierens View Drop Down
TMS Support
TMS Support
Avatar

Joined: 11 May 2010
Posts: 8590
Post Options Post Options   Quote Bruno Fierens Quote  Post ReplyReply Direct Link To This Post Posted: 26 Nov 2019 at 11:36am
1) Is WebCopy.OnRemovedFile triggered for each of these files?
2) Is WebCopy.OnRemoveFileFailed triggered?
3) Did you check WebCopy.Items[index].Success after execution?
Back to Top
Thomas Marshall View Drop Down
New Member
New Member
Avatar

Joined: 09 Jun 2011
Posts: 10
Post Options Post Options   Quote Thomas Marshall Quote  Post ReplyReply Direct Link To This Post Posted: 02 Dec 2019 at 3:48pm
1. No. It is not triggered.
2. No. It is not triggered.
3. No.

Marshall

Back to Top
Bruno Fierens View Drop Down
TMS Support
TMS Support
Avatar

Joined: 11 May 2010
Posts: 8590
Post Options Post Options   Quote Bruno Fierens Quote  Post ReplyReply Direct Link To This Post Posted: 02 Dec 2019 at 4:08pm
Do you have another FTP server to test with (maybe this is a permission issue) , as I cannot reproduce such problem here.
Back to Top
Thomas Marshall View Drop Down
New Member
New Member
Avatar

Joined: 09 Jun 2011
Posts: 10
Post Options Post Options   Quote Thomas Marshall Quote  Post ReplyReply Direct Link To This Post Posted: 02 Dec 2019 at 4:24pm
No, I don't.  As I said before I can delete the file without a problem using WS-FTP Pro, so it doesn't seem to be a permission problem.

Marshall

Back to Top
Bruno Fierens View Drop Down
TMS Support
TMS Support
Avatar

Joined: 11 May 2010
Posts: 8590
Post Options Post Options   Quote Bruno Fierens Quote  Post ReplyReply Direct Link To This Post Posted: 02 Dec 2019 at 4:25pm
Then provide us access so we can test it from here.
Back to Top
Thomas Marshall View Drop Down
New Member
New Member
Avatar

Joined: 09 Jun 2011
Posts: 10
Post Options Post Options   Quote Thomas Marshall Quote  Post ReplyReply Direct Link To This Post Posted: 15 Dec 2019 at 8:17am
I solved the problem by creating a Webcopy2 and using that for the delete.  I don't understand why.  Webcopy1 had already completed, I think.

Marshall

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down