You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicpartialclassfrmMain:Form{privatestaticList<Glob>_globs=newList<Glob>();privatevoidLoadExcludeFolders(){GlobOptions.Default.Evaluation.CaseInsensitive=true;stringline;using(varstreamReader=newStreamReader(@"Exclude_List.txt")){while((line=streamReader.ReadLine())!=null){if(string.IsNullOrWhiteSpace(line))continue;_globs.Add(Glob.Parse(line));}}}
...// Recursive function to get all folders and subfolders of given path path
public void DirSearch(stringsDir,List<string>lstDirs,boolskipHidden,boolskipSystem,Stopwatchstopwatch){if(backgroundWorker.CancellationPending)return;try{foreach(stringdinSystem.IO.Directory.GetDirectories(sDir)){boolincludeThisFolder=true;foreach(varglobin_globs){if(glob.IsMatch(d)){includeThisFolder=false;break;}}// exclude folders that have the system or hidden attr set (if required)if(skipHidden||skipSystem){
...
Add the exclude file named Exclude_List.txt in same folder containing exe.
Use glob pattern to specify folders. For example:
**\node_modules
will exclude any node_modules folders. ** matches any number of subfolders.
It would be great if we could exclude folders by name like
$RECYCLE.BIN
or by attribute like
don't show hidden/system files
The text was updated successfully, but these errors were encountered: