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

Move all file system operations to some core_io wrapper

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: Future Dev
    • Fix Version/s: BACKEND
    • Component/s: Libraries
    • Labels:

      Description

      In order to handle all files (mainly in dataroot) properly, some changes have landed to 2.6 and upwards (MDL-40642).

      From that issue it was clear that some new "rules" should be observed when handling files and some functions should be used as best candidates. So MDLSITE-2345 was created, just to verify developers observe those (complex) rules.

      Then Damyon came with a very good idea, about to create some core_io (or core_iofs IMO) wrapper to allow developers to have a simpler API for all fs operations. Such wrapper will be in charge of observing all those umask/chmod rules, hopefully in a transparent way. And, at the same time, it would be really easy to detect any violation (not using the wrapper).

      So this issue is about to discuss and implement that io[fs] wrapper. And apply it everywhere.

      Ciao

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated: