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

When displaying a file tree in browse mode, ignore empty folders

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • 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

      As discussed last Friday (http://moodle.org/mod/cvsadmin/view.php?conversationid=4890#c199940):

      When displaying a folder of files in a read-only mode

      • in server files repository plugin
      • in the new folder renderer MDL-22582

      then don't display empty directories at all. This check needs to work recursively, so that even a folder that contains an empty folder won't be displayed.

      We decided not to implement this in the File API, but just do it in the renderers and repository plugin.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dongsheng Dongsheng Cai
                Reporter:
                dougiamas Martin Dougiamas
                Tester:
                Nobody
                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