# ignore symlinks, original contents only
return FALSE;
}
+ if ($current->isDir()) {
+ # traverse subdirectories unless untracked in any amount
+ return !file_exists("$current/.gitignore");
+ }
# match **/*.html
- return $current->isDir()
- || preg_match('/\.html$/', $current->getFilename());
+ return preg_match('/(?<!\.inc)\.html$/', $current->getFilename());
}
);
}