You are viewing limited content. For full access, please sign in.

Question

Question

Does the "Is Not In" path condition within Starting Rules include Subfolders?

asked on April 5, 2018

Does the "Is Not In" path condition within Starting Rules include Subfolders of the folder specified using "Is not In"? I can't seem to find any documentation on this specific condition, wondering if anyone can give me a definitive answer.

1 0

Replies

replied on April 5, 2018

No. "Is not in" refers to a list of values. So something like "entry name not in (A,B,C)" would check for if the name is not A, B or C. The same would be applicable to paths, the condition would check whether it's any of the values specified without any knowledge of what types of strings they are.

1 0
replied on April 5, 2018

So if I wanted to exclude the start of a path, how can I accomplish that without excluding a different path that just happens to include the start of the path? 

For example, I want to exclude anything that starts with "Done", so Done\2015-2016, Done\2016-2017. But there exists a folder called Scheduling\Done (no sub-folders within Done) that I don't want to exclude. If I do a "Does not contain" condition with "\Done\" will that exclude everything in the above example (including Scheduling\Done), or just the items where folders are nested under a "Done" folder (e.g. Done\2015-2016)?

0 0
replied on April 5, 2018

Let me see if I get this right. You have a folder structure in the repository like this:

RepoRoot

--Done

----2015-2016

----etc

--Scheduling

----Done

And you want to exclude everything under "\Done" but not under "\Scheduling\Done"?

In this case, "Path starts with \Done" only applies to the folders under "Done" off the root of the repository. Folder paths under \Scheduling wouldn't qualify because the path is the entire set of folders that take you from the repository root to the current folder.

1 0
replied on April 11, 2018

Correct -- I want to exclude everything under "\Done" however there isn't a "does not start with" condition. Is the only way to accomplish excluding only everything under "\Done" to use the "does not match regular expression?"

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.