Search engine bots (like Googlebot) are incredibly efficient. If a single link to a "private" folder exists anywhere on the web—or if the folder structure is predictable—the bot will find it and index the contents.