Recursively walk through the filesystem, searching for files and directories while optional filtering.