add ‘recursive’ option to prevent search descending into subdirectories

ah i see what this is for. let me write something up really quick