Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
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