by Matthew Spurrier.
Another thing to check is to ensure that /home/afslproa/moodle2 actually exists, as i doubt it would have permission to recursively add the directories. (not actually sure, but i would assume that it wouldn't recursively add directories either...)