a subdirectory of a subdirectory?

This gets called with the directory name of the root eg/Website

It then filters out git folders in that folder. Make sense?


On 20 August 2013 14:27, Phillip Haydon <notifications@github.com> wrote:

> In src/Sandra.Snow.PreCompiler/Extensions/IoExtensions.cs:
>
> >                  file.Delete();
> >
> > -            foreach (var subDirectory in directory.GetDirectories())
> > +            var directories =
> > +                directory.GetDirectories()
> > +                         .Select(d => d)
> > +                         .Where(
> > +                             d =>
> > +                             !d.Name.Contains(".git") && !d.Name.Contains("svn") && !d.Name.Contains(".svn") &&
> > +                             !d.Name.Contains("snow"));
>
> Have you tested this to make sure it doesn't delete a sub directory called
> snow?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/Sandra/Sandra.Snow/pull/46/files#r5868007>
> .
>