- Create a "Folder" resource in a course.
- Upload a file to the directory.
- Create a "file" resource in the course.
- Select the above file as the source.
The effect is clear. The file resource gives you the file.
- Edit the "Folder" resource above
- Upload a file of the same name but different content, Ask it to overwrite the original.
What does the file resource give you now? The original or the newer version? I fear, you still get the original!
- Edit the "file" resource
- Point it to the same file (we know, it is the newer one)
Only now the file resource gives you the newer version!
Can I suggest you try something similar on your home computer:
- Create a file inside a folder called 'Folder A'.
- Copy this file into 'Folder B'.
- Now overwrite the file in 'Folder A'.
- Check to see if the file inside 'Folder B' has changed.
This is, effectively, what you have just done in Moodle.
If you want to keep the files linked together, then you need to select the 'Create alias/link' option when selecting file to add to the 'file' resource (rather than the default 'copy' option).
> - Create a file inside a folder called 'Folder A'.
> - Copy this file into 'Folder B'.
> - Now overwrite the file in 'Folder A'.
> - Check to see if the file inside 'Folder B' has changed.
Thanks for the instructions. Very illuminating, except that I call "Folders" directories.
> If you want to keep the files linked together, then you need to select the 'Create alias/link' option when selecting file to add to the 'file' resource (rather than the default 'copy' option).
Yes, I missed it (yet again)! When I created the "File" activity in step 4, I should have selected "Create an alias/shortcut to the file" instead of the default "Make a copy of the file".
That means, the participants of my course have downloaded the same old copy of the handout a second time.
Can't change that now. My next problem will be to explain this behaviour to the teachers I work with. They keep files organized in directories ("Folders") and keep their names, if they want to overwrite, or give new names, usually by adding a suffix, if they want to preserve the originals. (I know, this is not versioning. I'm talking of simple office documents, only seldom in correction-mode.)
I only used the term 'folder', instead of 'directory' as that is what most users are used to these days, if they are using some sort of GUI. The term 'directory' tends to be more familiar to those who regularly access them via the command line (which is generally a smaller minority, who are also more able to cope with understanding that directories & folders are the same thing).
As for explaining aliases to teachers, you could try getting them to read http://docs.moodle.org/26/en/Working_with_files#Creating_an_alias.2Fshortcut
Or you could just go through the steps with them (or even better, let them try as you talk them through):
- create a 'folder' resource with a file in it
- create 2 'file' resources in the same course - 1 as a 'copy', 1 as an 'alias / shortcut'
- overwrite the file in the 'folder' resource
- demonstrate that the first 'file' resource is unchanged and the second has now updated