stream directories during file stats

directories with enormous numbers of files are bad to enumerate
as a giant array