Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-59961

Make part of \file_system_filedir::add_file_from_path reusable for other file systems

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3
    • Fix Version/s: 3.4
    • Component/s: Files API
    • Labels:

      Description

      There is a large chunk of logic in \file_system_filedir::add_file_from_path that validates the file size and content hash. All new file systems could make use of this, suggesting that this logic get moved to a protected method in the file_system class.

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/Nov/17