Преглед изворни кода

Filter macOS .DS_Store files when detecting github archives, fixes #6784, closes #6785

Christian Mayer пре 7 година
родитељ
комит
512188d212
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      src/Composer/Downloader/ArchiveDownloader.php

+ 1 - 0
src/Composer/Downloader/ArchiveDownloader.php

@@ -148,6 +148,7 @@ abstract class ArchiveDownloader extends FileDownloader
         $finder = Finder::create()
             ->ignoreVCS(false)
             ->ignoreDotFiles(false)
+            ->notName('.DS_Store')
             ->depth(0)
             ->in($dir);