file.directory: rm seemingly pointless 'targets' var
Merge pull request #6513 from cvrebert/simplify-file.directory-recurse

file.directory: rm seemingly pointless 'targets' var