Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
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