I think this has been discussed before (or similar - e.g. for getting the total playlist time), and it isn't possible without opening and reading every file in the directory when you enter it, which is slow. It'd more feasible to add it to the database I would imagine.