Apply filemask to sub directory
Hi! I have a folder structure like this:
base/A1/B1/files.txt
base/A1/B2/files.txt
base/A1/B3/files.txt
...
base/A2/B1/files.txt
base/A2/B2/files.txt
base/A2/B3/files.txt
...
I would like to upload B1 folders of all A folders. Since there's a lot of A folders and B folders, I'd like to use some command like this:
[command] [filemask] localPathTo/base remote
If I use "synchronize" with filemask: */B1/*.txt , then although the files inside other B folders are not uploaded, but the empty B folders are there.
If I use "synchronize" with filemask: */B1/ or B1/, it doesn't seem to work, it will check the first level (the A folders), then all of them don't match with this mask so nothing will be uploaded.
The only way works for me right now is to use "synchronize" with filemask: */B1/*.txt | B2/; B3/; ....
But this looks really ugly.
I wonder is there better way to do this? Thank you!
base/A1/B1/files.txt
base/A1/B2/files.txt
base/A1/B3/files.txt
...
base/A2/B1/files.txt
base/A2/B2/files.txt
base/A2/B3/files.txt
...
I would like to upload B1 folders of all A folders. Since there's a lot of A folders and B folders, I'd like to use some command like this:
[command] [filemask] localPathTo/base remote
If I use "synchronize" with filemask: */B1/*.txt , then although the files inside other B folders are not uploaded, but the empty B folders are there.
If I use "synchronize" with filemask: */B1/ or B1/, it doesn't seem to work, it will check the first level (the A folders), then all of them don't match with this mask so nothing will be uploaded.
The only way works for me right now is to use "synchronize" with filemask: */B1/*.txt | B2/; B3/; ....
But this looks really ugly.
I wonder is there better way to do this? Thank you!