Skip to content

Commit

Permalink
API::File::dir() no longer needs to use the prefix filter to find the
Browse files Browse the repository at this point in the history
directory.  As soon as metacpan/metacpan-api@f66ae99 is merged in
it will be able to use the "dir" parameter.

Needs checking to see what happens with the trailing slash (and the root
directory).  Not sure what the current behaviour is
  • Loading branch information
clintongormley committed Apr 18, 2015
1 parent 7b9fa35 commit 6a49afb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/MetaCPAN/Web/Model/API/File.pm
Expand Up @@ -25,11 +25,7 @@ sub dir {
{ term => { 'file.level' => scalar @path } },
{ term => { 'file.author' => $author } },
{ term => { 'file.release' => $release } },
{
prefix => {
'file.path' => join( q{/}, @path, q{} )
}
},
{ term => { 'file.dir' => join( q{/}, @path }}
]
},
}
Expand Down

0 comments on commit 6a49afb

Please sign in to comment.