You search for a folder by name and get all files and folders with that term anywhere in the path. What you really want is a list of folders that you can blow away in one shot, such as hidden ".svn" folders...
Solution:
kind:folder foldername:.svn
Programming by coincidence since 1999.
kind:folder foldername:.svn
using System;
using System.IO;
using Antlr4.StringTemplate;
public namespace YourNamespace
{
public class Tester
{
public string HelloWorld()
{
Template template;
var path = @"C:\templates\template.st";
var file = new FileInfo(path);
using (StreamReader reader = file.OpenText())
template = new Template(reader.ReadToEnd(), '$', '$'); // custom delimeter (defaults are "<" and ">")
template.Add("string", "Hello World!");
template.Add("array", new string[] { "Record A", "Record B", "Record C" });
template.Add("object", new { PropertyA = "A", PropertyB = "B" });
return template.Render();
}
}
}
Template File$! file: C:\templates\template.st !$
String:
$string$
Array:
$array:{it|$it$ ($i$)};separator=", "$
Object:
Property A = $object.PropertyA$
Property B = $object.PropertyB$
$items:{item|
\t{ ... item.property ... \}
}$
$items:{it| $it.property$ }$
Bad:$items:{ $it.property$ }$
$if(mybool)$ ... $endif$Bad:
$if($mybool$)$ ... $endif$