Linux-realtimed
view release on metacpan or search on metacpan
bin/realtimed view on Meta::CPAN
close $fh;
}
return $path;
}
sub initTree {
my ($conf) = @_;
my $path = getCanonicalPath($conf->{path});
return unless $path;
my $curpath = '';
my @path = split m|/|, $path;
shift @path;
my $version = $conf->{version};
$dirtree->{conf}->{$version} //= {};
my $node = $dirtree->{conf}->{$version};
for (@path) {
$curpath .= "/$_";
$node->{$curpath} = { path => $curpath } unless $node->{$curpath};
$node = $node->{$curpath};
next unless $curpath eq $path;
# $node->{conf} //= {};
( run in 0.469 second using v1.01-cache-2.11-cpan-71847e10f99 )