rm *.csv not removing anything

Advertisement

KeeghanM
Guest

rm *.csv not removing anything

Hi,

I have a script which is downloading all the files from a folder onto my local machine. Then I want to remove everything from the remote folder. The script I have is:
option batch on
option confirm off
open SAMBA
cd /home/ftpadriley/VehicleAudit/
lcd C:\temp\VehicleAudit\Download\
mget *.csv
rm *.csv
Which works up till the rm *.csv line. I download all the files, but they stay up there.

I also tried a get -delete and that didn't work either.
I have permission to delete, my connection is set up with root.

thanks for any help,
Keeghan

Reply with quote

Advertisement

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

Re: rm *.csv not removing anything

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.

Reply with quote

KeeghanM
Guest

Re: rm *.csv not removing anything

martin wrote:

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.

Hi,

Uploaded the log file, when its doing the rm *.csv it is coming back "Status Code: 0" which indicates that it is working, however I can confirm 100% that the files are still in the folder that its apparently deleting from.

thanks for any help.
Keeghan

Reply with quote

martin
Site Admin
martin avatar

Re: rm *.csv not removing anything

You can see in the log file that deleting of about 60 .csv files was requested by WinSCP and confirmed by the server (with no error). If the files were not deleted by the server actually, it's not a problem of WinSCP.

Reply with quote

Advertisement

You can post new topics in this forum