...along with some basic metadata like dates and sizes
Should work on windows, otherwise DB and platform/language does not matter much.
Although I can and earlier have scripted stuff like this, I do not have the time now :-)
(What I am trying to accomplish is to analyse many files and folders, find regularities in the folder structure and enumerate every pattern that can be mapped to metadata in a content management system).
For now I did a simple
dir /S /N /B into a text file, split it using regular expressions and assembled every line into full path+parent dir+filename separated by tabs. Then I imported it into a database, assigning parent dir as foreign key.