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?
Where
put -filemask=|%macrolocal%\*\ %macrolocal%\*.* %macroremotein%"
macrolocal
is the local directory with a subdirectory inside it. Macroremotein
is as you might suspect the remote directory.