Skip to content

Commit

Permalink
Add a comment explaining the eager find() in Panda::Fetcher
Browse files Browse the repository at this point in the history
  • Loading branch information
Tadeusz Sośnierz committed Feb 28, 2014
1 parent d6f8a3a commit 5e862fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Panda/Fetcher.pm
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ sub git-fetch($from, $to) {
}

sub local-fetch($from, $to) {
# We need to eagerify this, as we'll sometimes
# copy files to a subdirectory of $from
for eager find(dir => $from).list {
# We need to cleanup the path, because the returned elems are too.
my $d = $_.directory.substr($from.IO.path.cleanup.chars);
Expand Down

0 comments on commit 5e862fb

Please sign in to comment.