Moodle PHP Documentation 5.0
Moodle 5.0.1+ (Build: 20250711) (61af040cd5f)
course_files

Migrates all files in the given directory.

Migrates all files in the given directory

Parameters
string$rootpathpath within the backup archive to the root directory containing the files {'}
string$relpathrelative path used during the recursion - do not provide when calling this!
Return values
arrayids of the migrated files, empty array if the $rootpath not found