A big problem when deleting wrong directory

Advertisement

wienciu
Guest

A big problem when deleting wrong directory

I have created a directory on the server with a leading space in the name. After clicking "delete" the following command was executed:
rm -R /home/www/temporary/ 33082019-A
This caused that all the contents of the parent directory were removed.

Reply with quote

Advertisement

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

Re: A big problem when deleting wrong directory

Can you reproduce the problem? What version of WinSCP?
Testing the same scenario (assuming SCP protocol), WinSCP executed rm -f -r " 33082019-A", as expected.

Reply with quote

wienciu
Guest

I can't reproduce the problem because I don't have a test server. The incorrect command was executed on the production server and I had to restore data from backups.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum