Stash ignored directories

Added flags to recurse ignored directories (and a test).