Uploaded image for project: 'Zeta Components'
  1. Zeta Components
  2. ZETACOMP-85

Make ezcBaseFile::walkRecursive() (or another method) able to apply excludeFilters on directories

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: Base
    • Labels:
      None

      Description

      The current (and from the comments of the method intended) behaviour of ezcBaseFile::walkRecursive() is to recursively search for files by applying an include and/or an exclude filters on files only. This works fine but in some cases it would be nice to be able to apply an exclude filters on directories as well. For instance, in eZ Publish, we use this method to generate the autoload array and if you have a lots non-php files somewhere in your installation, this process takes several minutes because you cannot exclude folders to be scanned. (see http://issues.ez.no/18377).

      I think that another method (or the same one with more parameters) would be interesting to allow this.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              damien@pobel.fr Damien Pobel
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: