Closed volodymyrdovhan closed 3 weeks ago
Hello, There is a lot of direct access to the files for reading/writing: file_get_contents(), file_put_contents(), etc. Moodle provides an API to work with files: https://moodledev.io/docs/4.5/apis/subsystems/files#copy-a-file-in-the-file-storage-api-to-elsewhere-on-disk
https://moodledev.io/docs/4.5/apis/subsystems/files#list-all-files-in-a-particular-file-area https://moodledev.io/docs/4.5/apis/subsystems/files#access-the-content-of-a-file
https://moodledev.io/docs/4.5/apis/subsystems/files#from-a-file-on-disk https://moodledev.io/docs/4.5/apis/subsystems/files#from-a-string
Hello, There is a lot of direct access to the files for reading/writing: file_get_contents(), file_put_contents(), etc. Moodle provides an API to work with files: https://moodledev.io/docs/4.5/apis/subsystems/files#copy-a-file-in-the-file-storage-api-to-elsewhere-on-disk
https://moodledev.io/docs/4.5/apis/subsystems/files#list-all-files-in-a-particular-file-area https://moodledev.io/docs/4.5/apis/subsystems/files#access-the-content-of-a-file
https://moodledev.io/docs/4.5/apis/subsystems/files#from-a-file-on-disk https://moodledev.io/docs/4.5/apis/subsystems/files#from-a-string