Ok, I am writing a report in which i am looking for "orphaned" files in my file system. And by orphaned, I mean that they do not have a corresponding record in a database.
Now i have been running over ideas on how to accomplish this, and one of the things I was thinking about doing (But i think it would be WAY to resource intensive) was grabbing a directory listing in an array of objects, then looping through that and doing a SQL query..... but that potentially could be really resource intensive.
Does anyone have any suggestions?