Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-14589 META: Develop new File API
  3. MDL-18234

file storage methods to move files out from storage

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • 2.0
    • 2.0
    • Files API
    • None
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE

      There are a bunch of methods to add files/content to the (file_)storage:

      create_file_from_pathname(); from normal filesystem to storage
      create_file_from_url(): from url to storage
      create_file_from_string(): from variable to storage
      create_file_from_storedfile(): from storage to storage

      I think we need at least two functions doing the inverse:

      create_pathname_from_file(): from storage to normal filesystem
      create_string_from_file(): from storage to variable

      So, some processes like backup/restore can copy files out from storage and make their work there. I think that doing everything in the storage would be far from optimal.

      Note I don't like the function names. They are only an "example". Perhaps they should be "export_xxxx" or another thing.

      Ciao

            skodak Petr Skoda
            stronk7 Eloy Lafuente (stronk7)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.