f679a1e068
touch should only work on temp and below dir's. With path we get temp/.. and temp/. So we were modfying moodledata dir as well and it was failing because of permission issues.