MDL-62061 core_privacy: Stop directories being created.

This stops directories being created in the root directory
while running unit tests.
This commit is contained in:
Adrian Greeve
2018-12-06 11:37:41 +01:00
parent d09dc52b0a
commit 6ff8d9bb2c
@@ -212,7 +212,8 @@ class moodle_content_writer implements content_writer {
[$file->get_filepath()]
);
$path = $this->get_path($pathitems, $file->get_filename());
check_dir_exists(dirname($path), true, true);
$fullpath = $this->get_full_path($pathitems, $file->get_filename());
check_dir_exists(dirname($fullpath), true, true);
$this->files[$path] = $file;
}