Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use .dirname instead of deprecated .directory
  • Loading branch information
lizmat committed Oct 3, 2014
1 parent 7398d28 commit aa0acc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Panda/Fetcher.pm
Expand Up @@ -46,7 +46,7 @@ sub local-fetch($from, $to) {
my $cleanup = $from.IO.cleanup;
my $cleanup_chars = $cleanup.chars;
for eager find(dir => $from).list {
my $d = IO::Spec.catpath($_.volume, $_.directory, '');
my $d = IO::Spec.catpath($_.volume, $_.dirname, '');
# We need to cleanup the path, because the returned elems are too.
if ($d.Str.index(~$cleanup) // -1) == 0 {
$d = $d.substr($cleanup_chars)
Expand Down

0 comments on commit aa0acc1

Please sign in to comment.