App-FirefoxMultiAccountContainersUtils
view release on metacpan or search on metacpan
lib/App/FirefoxMultiAccountContainersUtils.pm view on Meta::CPAN
#use DDC; print "D2:"; dd $args;
my $path;
{
for (@{ $res->[2] }) {
next unless $_->{name} eq $args->{profile};
$path = $_->{path};
last;
}
}
return [404, "No such Firefox profile '$args->{profile}', ".
"available profiles include: ".
join(", ", map {$_->{name}} @{$res->[2]})]
unless defined $path;
$path = "$path/containers.json";
return [412, "Can't find '$path', is this Firefox using Multi-Account Containers?"]
unless (-f $path);
unless ($args->{-dry_run} || !$do_backup) {
log_info "Backing up $path to $path~ ...";
( run in 0.794 second using v1.01-cache-2.11-cpan-39bf76dae61 )