Having a server(ish) I want a way to keep track of the files I have in some folders with a web-interface. I have done most of the programming already, by basically parsing through the folders each load ( not the most optimized way but it has had it advantages as well ). But now the reasons of keeping the files in a database has become overwhelming.
So - How do I do this in the best way possible.
The way I had thought was to have a script running and add a database entry whenever a file was added to a folder I was listening to.
Is there an easy way to accomplish this? Or would you solve this problem in a completely different matter?
edit: right sorry. Operating system is a bit difficult - not really. But at the moment it's written on an os x machine but eventually it's going up on an linux so I'll absolutely have a look at inotify. Do you know any others like it for say os x.