Was reviewing the questions infrastructure in 2.0 in order to delete their backup & restore methods... when I've arrived to this method:
Looking for uses, I've seen it being used by methods like:
That are used by various scripts and classes like:
Problem seems to be that those functions above are looking for stuff under moodledata/courseid (pre 2.0 stuff).
Just creating this because we shouldn't have code like that in 2.0 anymore and instead all the scripts/classes above should be handling the files using the new API. So I guess that all them are failing right now.