Menu

How to exclude subdirectories

Pirella
2019-03-27
2019-03-27
  • Pirella

    Pirella - 2019-03-27

    Hi
    In my project I have a large img directory below which there is a tree with a few thousand subdirectories - each containing some image files and an index.php. Astrogrep will skip the images but still spend a very long time searching this subtree. So I would like to exclude it.

    Under exclusions I specified "path" and then "c:\myproject\img" but this doesn't have the desired effect.

    If is what I want possible? And if yes: how?

    Thanks

     
  • Jackslade

    Jackslade - 2019-03-27

    Are you looking to exclude the entire directory or still search it but just exclude the images? It wasn't clear on what your desired effect should be.

    If just excluding an entire directory, then under Exclusions, create a new entry and choose Directory, Path, and enter the full path. Choose equals and also the ignore case checkbox. That should exclude the entire directory from being searched.

    Thanks for using AstroGrep!

     
  • Pirella

    Pirella - 2019-03-27

    Thank you for the answer.
    I had forgotten the ignore case checkbox - thinking that case didn't matter under Windows.

     
    • Jackslade

      Jackslade - 2019-03-27

      Yeah, that is doing a text comparison on the value entered against the directory path instead of an actual directory comparison to keep it more generic.

       

Log in to post a comment.

MongoDB Logo MongoDB