[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FTP_delete



Hi Helge,
did you try to delete the file by hand with the same ftp commands?

I think the problem isn't your program or ftpapi but the file itself.
Maybe you don't have enough access rights to delete the file.
You must be allowed to write to the file.
For downloading, beeing allowed to read the file is enough.

Or maybe the DELE command is disabled by the server.

best regards
 Martin


ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx schrieb am 05.05.2008 22:58:20:
> Following from the joblog:
>    [1]  >RETR sched_20080505162233.txt
>         150 Opening ASCII mode data connection for
>         /Download/Schedule/sched_20080505162233.txt.'
>         226 Transfer complete.
>    [2]  > DELE sched_20080505162233.txt
>         500 sched_20080505162233.txt not deleted.
>
> Coming from
>    [1]  ftp_get(ftp: Files(X))
>    [2]  ftp_delete(ftp: Files(X))
> in the Rpg program using ftpapi.
>
> The ftp_delete fails for an unknown reason.
>
> Accessing the ftp server via any ftp client allows
> deleting the file on the server, so it's not
> missing authority causing the
>    500 sched_20080505162233.txt not deleted.
>
> The ftp session is still open after the failing ftp_delete
> and processes more transfers. They fails to when it comes to the
> delete.
>
> Any ideas ?

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------