- Folders correspond to subdirectories under moodledata. The directory corresponding to a Folder lives in the directory of the course the Folder is associated with. Course directories seem to be named by course id.
- Each Folder is also represented by a record in the mdl_resource table. Folder records have 'directory' in the type field.
- Files in a Folder are not recorded in the database as far as I've been able to tell. When Moodle needs to know about the Files in a Folder, it uses get_directory_list() or something similar to read the directory (Folder) contents.
Thanks very much in advance...