Is it possible to rename the folders inside moodledata

Is it possible to rename the folders inside moodledata

by Andy Griffiths -
Number of replies: 5

Hi all,

I'm new to moodle and one thing i would like to do is include material that exeeds the 16MB upload limit.

I understand that i can copy (ftp) such files to the relevant course folder in the moodledata folder.

What i want to know is will it cause a problem if i rename those folders (currently 1, 2, 3 etc) to their course titles so that i can recognise them more easily? or;

Is it possible for moodle to name these folders according to the course name automatically?

Average of ratings: -
In reply to Andy Griffiths

Re: Is it possible to rename the folders inside moodledata

by Teemu Sumi -
You can't change course id numbers under the moodledata directory. Those are the numbers 1,2,3 etc. You can modify the file manager to use course names instead but I don't recommend that. There will be lots of problems with spaces on the names of the courses. Umlauts also will cause lots of troubles (lucky englishmen don't have to worry about that wink). Englismen will have troubles with apostrophes (is it that silly characer ') ????


Teemu
In reply to Andy Griffiths

Re: Is it possible to rename the folders inside moodledata

by Petr Skoda -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
It is not possible to rename the folders, there are too many places that would have to be fixed :-\

I would create some folder in moodledata and store symbolic links pointing to correct course subdirectories, you can name them using short course names (use clean_filename() to fix the filenames). If I had hundreds of courses, I would patch a cron script to update the links each day. You could even create some directory structure to reflect course categories...

skodak
In reply to Petr Skoda

Re: Is it possible to rename the folders inside moodledata

by Teemu Sumi -
I found this.

It is about symbolic links and Windows.


Teemu
In reply to Andy Griffiths

Re: Is it possible to rename the folders inside moodledata

by Andy Griffiths -

Thanks all,

It's not that big a problem for me i will just keep a journal to cross reference the folders with the courses smile

Thanks again

In reply to Andy Griffiths

Re: Is it possible to rename the folders inside moodledata

by James Robertson -

You can go to the list of courses and set the cursor over the respective course names.  The url displayed (at the bottom in IE) for each course will be something like .../moodle/course/view.php?id=2, where the id is the moodledata folder number for the course.

Jim.