MDL-37774 Make moodle1_file_manager::migrate_directory() support trailing slash in...
authorDavid Mudrák <david@moodle.com>
Fri, 8 Feb 2013 10:45:24 +0000 (11:45 +0100)
committerDavid Mudrák <david@moodle.com>
Fri, 8 Feb 2013 10:45:24 +0000 (11:45 +0100)
commitd0530ed4448d8c7abc03f1f4b0c380ecff66f16b
tree67e98fadc2f2d75111b2b5b057cbe8b151588b95
parent86083f9752aca6d7e17f388eeb4e73b4d6ca16da
MDL-37774 Make moodle1_file_manager::migrate_directory() support trailing slash in rootpath

As the $rootpath is concatenated with the $relpath, we would end with a
path like course_files//file.txt. Such a path is detected as not-valid
later and an error would be thrown.

So the patch makes sure that the trailing slash is cut off and a
debugging for the developer is displayed.
backup/converter/moodle1/lib.php