mirror of
https://github.com/moodle/moodle.git
synced 2025-03-27 11:02:38 +01:00
rename() fails under Windows if the destination file/directory exists. I modified the code to only call $this->get_workdir_path() once as that function creates the directory if doesn't exist. And we don't want that considering the behaviour of rename on Windows.