Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

nobugme

Hi, using -filemask=|*/ as Martin suggested seems like the best way to skip subfolders. About the order of the mask, I think it doesn’t change much since all patterns are checked together.
martin

Sorry, I do not understand what is "sequentially or all at once".
nobugme

Hi,
I’ve used -filemask before, but I’m curious—does the order of the patterns in the mask affect performance or the way files are processed during a transfer? For example, if we exclude multiple subdirectories with |*/dir1/|*/dir2/, is it handled sequentially or all at once?

Thank you.
djhurt1

Re: Expected behavior check

Curious how the slashes matter in this context? In my example I used
put -filemask=|%credmgntlocal%\*\ %credmgntlocal%\*.* %mtremotein%

But yours is
put -filemask=|*/ %macrolocal%\*.* %macroremotein%

Using -filemask does the convention not have to follow the target system? Obviously it doesn't but I'm curious about that. Forgive my ignorance :)
djhurt1

Expected behavior check

I wrote several Windows batch scripts several years ago and I included the line below. I needed to copy all files from a local folder to a remote folder and exclude the sub directory that resided in the local folder. I think that is why I included the below line. It's been awhile since I've done anything in WinSCP so I hoped others could confirm this is the best way to accomplish what I intended to do or if I should change it because the current way I wrote could cause unintentional issues? It's been working all these years but feels kind of hackish but perhaps it's fine as is?
put -filemask=|%macrolocal%\*\ %macrolocal%\*.* %macroremotein%"
 

Where macrolocal is the local directory with a subdirectory inside it. Macroremotein is as you might suspect the remote directory.