This makes `ps' output look a bit nicer if there's trailing
slashes involved from the command-line.
use v5.10.1;
use PublicInbox::Over;
use PublicInbox::Inbox;
+use File::Spec ();
# for ->reopen, ->mset, ->mset_to_artnums
use parent qw(PublicInbox::Search);
sub new {
my (undef, $topdir) = @_;
+ $topdir = File::Spec->canonpath($topdir);
bless {
topdir => $topdir,
# xpfx => 'ei15'
sub new {
my (undef, $dir, $opt) = @_;
+ $dir = File::Spec->canonpath($dir);
my $l = $opt->{indexlevel} // 'full';
$l !~ $PublicInbox::SearchIdx::INDEXLEVELS and
die "invalid indexlevel=$l\n";