Moodle PHP Documentation 4.1
Moodle 4.1.19+ (Build: 20250711) (5f47dc23ffc)
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