Looks like it does this: 1. Builds file list 2. Compares files with DB (but DB is probably empty, eh?), so it ends up adding every file as it goes 3. Detects you don't have a key, adds directory