Exclude files from download via filemask

Advertisement

AlLeX_
Joined:
Posts:
13

Exclude files from download via filemask

Hello,

I am getting all files from a SFTP server with a script but I have te exclude a certain file type from download. For example *temp files.

Thanks a lot for your help

Reply with quote

Advertisement

AlLeX_
Joined:
Posts:
13

Thank you very much for your answer.


Is there a possibilty to exclude a file via its suffix with -filemask switch? This is not mentioned in the documentation.

For exaple: I have to download all files except those with *.tmp sufix.

-delete -filemask <> *.tmp (this does not work) - something like this ?

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
29,540
Location:
Prague, Czechia

That's correct, just that you can omit the leading *.* actually and use just |*.tmp.

You have also omitted the "equal sign", but I assume you actually use it, otherwise it cannot work.

The correct and simplest syntax is -filemask=|*.tmp.

Reply with quote

Advertisement

You can post new topics in this forum