deleting files after download

Please post here if you have problems in using Wing FTP Server.
Post Reply
seattle
Posts: 31
Joined: Tue Nov 07, 2017 7:31 pm

deleting files after download

Post by seattle »

We have a few customers that can not delete files after downloading. An example:

Code: Select all

[07] Mon, 08 Apr 2024 11:45:11 (0040536) Transfer starting for /OUT/20240405a.zip
[08] Mon, 08 Apr 2024 11:45:11 (0040536) SSH_FXP_HANDLE: /OUT/20240405a.zip has been opened.
[07] Mon, 08 Apr 2024 11:45:11 (0040536) SSH_FXP_CLOSE: path /OUT/20240405a.zip
[07] Mon, 08 Apr 2024 11:45:11 (0040536) File sent successfully, transferred 117997 Bytes in 0.1 seconds, 1858.6 KB/S
[08] Mon, 08 Apr 2024 11:45:11 (0040536) SSH_FXP_STATUS: /OUT/20240405a.zip has been closed.
[02] Mon, 08 Apr 2024 11:45:11 (0040537) Connected from abc.de.fgh,i50 (local address 192.168.3.14, port 22)
[02] Mon, 08 Apr 2024 11:45:11 (0040536) Closed session, disconnected from abc.de.fgh,i50
[01] Mon, 08 Apr 2024 11:45:11 (0040537) The user meagain started SSH authentication.
[01] Mon, 08 Apr 2024 11:45:11 (0040537) User/password authentication OK.
[01] Mon, 08 Apr 2024 11:45:11 (0040537) SSH authentication completed successfully. Client information: SSH-2.0-JSCH-0.1.54
[01] Mon, 08 Apr 2024 11:45:11 (0040537) The user meagain logged in successfully via SSH.
[07] Mon, 08 Apr 2024 11:45:11 (0040537) SSH_FXP_INIT: client SSH version 3
[08] Mon, 08 Apr 2024 11:45:11 (0040537) SSH_FXP_VERSION: server SSH version 3
[01] Mon, 08 Apr 2024 11:45:11 The lua script of event OnUserLoggedIn executed successfully.
[07] Mon, 08 Apr 2024 11:45:11 (0040537) SSH_FXP_REMOVE: File name /OUT/20240405a.zip
[08] Mon, 08 Apr 2024 11:45:11 (0040537) SSH_FXP_STATUS: Cannot delete file.
For the download event there is log write and a batchfile is run which uses the filename but not the file itself.
Can the BeforeDelete event be used for solving this? If so , how?
FTP
Site Admin
Posts: 2094
Joined: Tue Sep 29, 2009 6:09 am

Re: deleting files after download

Post by FTP »

Are you using the latest version 7.3.3? I just tested deleting files after download with the latest version 7.3.3, there is no problem on my side.
seattle
Posts: 31
Joined: Tue Nov 07, 2017 7:31 pm

Re: deleting files after download

Post by seattle »

Using older 7.2.3 but the problem has been around for a few years. It is just now getting to the point where it is annoying everyone.
Is there a debug switch that can be used to inform as to why the file can't get deleted by the ftp server?
FTP
Site Admin
Posts: 2094
Joined: Tue Sep 29, 2009 6:09 am

Re: deleting files after download

Post by FTP »

I don't know, so please upgrade to the latest version 7.3.3 and check the result again.
seattle
Posts: 31
Joined: Tue Nov 07, 2017 7:31 pm

Re: deleting files after download

Post by seattle »

Not so simple for me to do that :-)
Hopefully in a couple of weeks. In the meantime, I am using the BeforeFileDeleted method to monitor and handle the situations.
(btw: BeforeFileDeleted kicks off when a file is renamed, so be careful when using it.)
Post Reply