Dotclear


Ignore:
Timestamp:
06/28/19 10:59:20 (6 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Cope with various git/hg directories to ignore in zip archive

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/core/class.dc.media.php

    r3968 r3984  
    921921        $zip = new fileUnzip($f->file); 
    922922        $zip->setExcludePattern($this->exclude_pattern); 
    923         $list = $zip->getList(false, '#(^|/)(__MACOSX|\.svn|\.hg|\.git|\.DS_Store|\.directory|Thumbs\.db)(/|$)#'); 
     923        $list = $zip->getList(false, '#(^|/)(__MACOSX|\.svn|\.hg.*|\.git.*|\.DS_Store|\.directory|Thumbs\.db)(/|$)#'); 
    924924 
    925925        if ($create_dir) { 
     
    973973    { 
    974974        $zip  = new fileUnzip($f->file); 
    975         $list = $zip->getList(false, '#(^|/)(__MACOSX|\.svn|\.hg|\.git|\.DS_Store|\.directory|Thumbs\.db)(/|$)#'); 
     975        $list = $zip->getList(false, '#(^|/)(__MACOSX|\.svn|\.hg.*|\.git.*|\.DS_Store|\.directory|Thumbs\.db)(/|$)#'); 
    976976        $zip->close(); 
    977977        return $list; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map