rm command in script fails in 5.5.5

Advertisement

Jan Jansen
Guest

rm command in script fails in 5.5.5

Hello,
I found a bug with the command rm in version 5.5.5 for example in the script
open ftp://user:pass@127.0.0.1 -passive=on
cd subdironftp
rm fileonftp.txt
exit

the rm command gets first the properties of the file, but looks into the root folder (MLST /fileonftp.txt, not in the subdironftp. That's why you get the log Can't get attributes of file.... If I use rm subdironftp/fileonftp.txt then it gets the properties, but the delete statement afterwards on the ftp server fails, because it can't find the file subdironftp/subdironftp/fileonftp.txt.

After that I downloaded version 5.6.1 beta, and that works ok with the rm command.

Best regards,
Jan Jansen

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,442
Location:
Prague, Czechia

Re: rm command in script fails in 5.5.5

Please attach a full log file showing the problem (using the latest version of WinSCP).

To generate log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Also, can you send me an email, so I can send you back a dev version of WinSCP to test? Please include link back to this topic in your email. Also note in this topic that you have sent the email. Thanks.

You will find my address (if you log in) in my forum profile.

Reply with quote

Jan Jansen
Joined:
Posts:
1

log file 5.5.5

Hello,
In the attachments you will find a log with version 5.5.5 and another log with the beta version of 5.6.1
and also the script.
So the problem is allready solved with the beta version.
Thanks for your response.
Best regards,
Jan Jansen.
Description: ftp script wit rm command
Description: log of rm command with version 5.6.1
Description: log of rm command with version 5.5.5

Reply with quote

Advertisement

You can post new topics in this forum