Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Skip dots for Recursive Directory Iterator #4

Merged
merged 1 commit into from

2 participants

@tamagokun

A phark install was failing as it was trying to copy "bin/." which definitely isn't a file.

Mike Kruk RecursiveDirectoryIterator shows "." and ".." in directories by default,
which sometimes will completely bork a package install.
d939475
@lox lox merged commit eeb8947 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 26, 2012
  1. RecursiveDirectoryIterator shows "." and ".." in directories by default,

    Mike Kruk authored
    which sometimes will completely bork a package install.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Phark/Shell.php
View
2  lib/Phark/Shell.php
@@ -23,7 +23,7 @@ public function glob($basedir, $pattern)
{
$files = array();
$iterator = new \RecursiveIteratorIterator(
- new \RecursiveDirectoryIterator($basedir, \RecursiveDirectoryIterator::FOLLOW_SYMLINKS));
+ new \RecursiveDirectoryIterator($basedir, \RecursiveDirectoryIterator::FOLLOW_SYMLINKS | \RecursiveDirectoryIterator::SKIP_DOTS));
foreach ($iterator as $file)
{
Something went wrong with that request. Please try again.