Filemask issue (5.0.6 beta)
Hi,
I'm using WinSCP 5.0.6 beta under Windows 7 x64 SP1. I call the winscp.com with a scripting file.
What I'm trying to do is to synchronize only specified folders recursively but leave all the others untouched.
Here's a sample file structure
dir_01\hello_01.txt
dir_02\hello_02.txt
dir_03\hello_03.txt
hello_00.txt
What I need is dir_01 and dir_01\hello_01.txt and dir_02 and dir_02\hello_02.txt to be synchronized, but dir_03 and hello_00.txt excluded.
In my understanding this would be like this:
-filemask="*/dir_01/;*/dir_02/|"
but this in fact synchronizes dir_01 and dir_02 recursively which is good, but also synchronizes hello_00.txt which I don't want.
I tried this too (amongst many others):
-filemask="*/dir_01/;*/dir_02/|*/*"
which, as I understand, would exclude all files from the root folder (non-recursive), but this excludes all files. It makes all directories synchronized but no files at all.
Am I doing something wrong?
I'm using WinSCP 5.0.6 beta under Windows 7 x64 SP1. I call the winscp.com with a scripting file.
What I'm trying to do is to synchronize only specified folders recursively but leave all the others untouched.
Here's a sample file structure
dir_01\hello_01.txt
dir_02\hello_02.txt
dir_03\hello_03.txt
hello_00.txt
What I need is dir_01 and dir_01\hello_01.txt and dir_02 and dir_02\hello_02.txt to be synchronized, but dir_03 and hello_00.txt excluded.
In my understanding this would be like this:
-filemask="*/dir_01/;*/dir_02/|"
but this in fact synchronizes dir_01 and dir_02 recursively which is good, but also synchronizes hello_00.txt which I don't want.
I tried this too (amongst many others):
-filemask="*/dir_01/;*/dir_02/|*/*"
which, as I understand, would exclude all files from the root folder (non-recursive), but this excludes all files. It makes all directories synchronized but no files at all.
Am I doing something wrong?