Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Spec dir() default exclusion to all /^\./
Instead of just '.' and '..'.  This move inspired after finding out File::Find
will gladly recurse into .git when used by panda to find files to install.
  • Loading branch information
lizmat committed Nov 4, 2014
1 parent 845eb79 commit 91c184f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions S32-setting-library/IO.pod
Expand Up @@ -24,8 +24,8 @@ Synopsis 32: Setting Library - IO

Created: 19 Feb 2009

Last Modified: 28 Oct 2014
Version: 27
Last Modified: 4 Nov 2014
Version: 28

=head1 Overview

Expand Down Expand Up @@ -155,7 +155,7 @@ C<.lines> and C<.get>. Defaults to C<True>.
X<dir()>

sub dir($directory as Str = $*CWD,
Mu :$test = $*SPEC.curupdir,
Mu :$test = !dotfiles,
Bool :$absolute = False,
Bool :$Str = False,
IO::Path :$CWD = $*CWD,
Expand All @@ -171,7 +171,8 @@ named parameters are optional:
=item :test

Expression against which to smart-match for inclusion in result list. By
default excludes C<curdir> (usually ".") and C<updir> (usually "..") only.
default excludes all basenames that start with a period (usually only C<.>
and C<..>, but also "hidden" directories such as C<.git>).

=item :absolute

Expand Down

0 comments on commit 91c184f

Please sign in to comment.