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

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Files API
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              skodak Petr Skoda
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Participants:
              Component watchers:
              Matteo Scaramuccia, Jake Dallimore, Jun Pataleta
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                24/Nov/10