io: Add directory searching to io.file.