thanks for your answer.
And i agree - storing the full path isnt a wise plan. Just wanted to see a way to include the permissions.
Do you mean you have a new version ?
I got my server running good again. So either i'll go and adapt the one you posted here, or if you have an improved version then perhaps that would be wiser.