-delete causing option exclude to be ignored

Advertisement

WeZ
Guest

-delete causing option exclude to be ignored

Hello,

using this code:
option exclude "*/; zzz"
get *.* D:\BACKUP\Afrox\Afrox_Downloaded_Files\20091201\
quit

Winscp downloads all the files in the root directory and ignores the sub-directory as well as the file called "zzz" (don't ask :-))

If i add the -delete option:
option exclude "*/; zzz"
get *.* D:\BACKUP\Afrox\Afrox_Downloaded_Files\20091202\ -delete
quit

It ignores the option exclude values and moved the sub-directories as well as the "zzz" file.

Please can someone help me here?

Ciao
WeZ

Reply with quote

Advertisement

Guest

Re: -delete causing option exclude to be ignored

martin wrote:

That's by design.

Thanks Martin for pointing it out (although i cant think of why it should be designed as such) - but it still doesn't help me.

How do I stop this application from removing the sub dirs and the zzz file as displayed in my option exclude statement??

Ciao
WeZ

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,552
Location:
Prague, Czechia

Re: -delete causing option exclude to be ignored

Anonymous wrote:

How do I stop this application from removing the sub dirs and the zzz file as displayed in my option exclude statement??
You will need to use some more complex scripts. Sch as listing files to transfer first and then download and delete them one by one. Example scripts may give you some hints.

Reply with quote

Advertisement

You can post new topics in this forum