Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Include Directories Mask on Subfolders

I have updated the documentation somewhat.
martink

Re: Include Directories Mask on Subfolders

Would it be possible to include information about this rule in documentation about file masks (https://winscp.net/eng/docs/file_mask)? As far as I know, there is no information like this now.
martin

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/*/
JIC

Basically I have many folders for different years under the agendas.
So it goes:
-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:
*/documents/agendas/*/*2014/

*/documents/agendas/*/*2015/
etc.


Is it possible to just say include only without excluding every other folder:
*/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

Re: Include Directories Mask on Subfolders

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

Include Directories Mask on Subfolders

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

-W:

---documents
-----agendas


In the "Include Directories" box I've tried the following:
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!