Topic "Include Directories Mask on Subfolders"

Author Message
JIC

Guest


Hi,

I am trying to set a mask with the GUI for certain sub-directories to be included only but I can't figure it out and I feel like I've tried everything. Here is my file structure

Code:
-W:
---documents
-----agendas


In the "Include Directories" box I've tried the following:
Code:
W:/documents/agendas/
/documents/agendas/
/agendas/
*/agendas/


I've tried many other combinations with no avail.
The only thing that works is if I just put documents/ in there with no sub-folder.

Is it possible to get this to work? I can get sub-directories to work in the exclude folder but I'd much rather be able to select the ones I want.

Thanks!
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25748
Location: Prague, Czechia
You didn't explain us, what your goal is. Why do set the include mask? Do you have some exclude mask, that you want to override for that specific folder? What is that mask? Give us more information!
JIC

Guest


Basically I have many folders for different years under the agendas.
So it goes:
Code:
-W:
---documents
-----agendas
-------committee1
---------agendas2010
---------minutes2010
---------agendas2011
---------minutes2011
---------agendas2012
---------minutes2012
---------agendas2013
---------minutes2013
---------agendas2014
---------minutes2014
-------committee2
---------agendas2010
---------minutes2010
---------agendas2011
---------minutes2011
---------agendas2012
---------minutes2012
---------agendas2013
---------minutes2013
---------agendas2014
---------minutes2014


Except there are many more committees and years. I want to monitor only years 2016 and 2017. Right not that only way I have it working is by using a wildcard in the excludes for each year. Like so:
Code:
*/documents/agendas/*/*2014/
*/documents/agendas/*/*2015/
etc.


Is it possible to just say include only without excluding every other folder:
Code:
*/documents/agendas/*/*2016/
*/documents/agendas/*/*2017/


When I tried this it didn't work. I assumed when I put the paths in the folder inclusions it would only scan those folders. Is this correct or am I thinking of it wrong? Otherwise I need tons of exclusions for every folder I have. Or do I exclude all folders and then put those 2 lines in the inclusions?

Hopefully that clears up what I'm trying to accomplish. I'm just trying to simplify this for less exclusions/inclusions because I have many other folders within the drive I have to worry about.

Thanks!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25748
Location: Prague, Czechia
That's possible, but you have to explicitly include all the parent folders too (starting from the root of the synchronization, which we do not know what it is).

Like */documents/;*/documents/agendas/;*/documents/agendas/*/
Advertisements

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License