Topic "Apply filemask to sub directory"

Author Message
[View user's profile]

Joined: 2016-11-13
Posts: 1
Location: US
Hi! I have a folder structure like this:



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!
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26330
Location: Prague, Czechia
It's not possible.

But cannot you use * | B[2-9]/?

You can post new topics in this forum

Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License