Using symlinks in resource 'directory'

Using symlinks in resource 'directory'

by Pieterjan Heyse -
Number of replies: 0
I want to link to directories in a resource. We mount a share on our linux server (the original share in on a win2k3) using cifs. Then we symlink the mounted share to the right location in the moodledata directory. Moodle does no traverse the directory structure when using a symlink.

I have also found the code resplonsible for this. In lib/moodlelib.php in the function get_directory_list() we find a line with :

 if (filetype($fullfile) == 'dir') {

but the filetype of a symlink is 'link' so changing the if statement to :
 if (filetype($fullfile) == ('dir' || 'link)) {
should do the trick.

Is this the right way of resolving this issue? What are the reasons that this behaviour is coded this way? Can someone please change this in cvs?




Average of ratings: -