create database path if not called with read_only parametar (instead of
disabling cache) [0.04]
git-svn-id: svn+ssh://mjesec/home/dpavlin/svn/webpac2/trunk@215
07558da8-63fa-0310-ba24-
9fe276d99e06
'List::Util' => 0,
'URI::Escape' => 0,
'LWP' => 0,
+ 'File::Path' => 0,
},
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
clean => { FILES => 'WebPAC-* pod2html Makefile tags' },
use base 'WebPAC::Common';
use Storable;
+use File::Path;
=head1 NAME
=head1 VERSION
-Version 0.03
+Version 0.04
=cut
-our $VERSION = '0.03';
+our $VERSION = '0.04';
=head1 SYNOPSIS
if ($dir) {
my $msg;
if (! -e $dir) {
- $msg = "doesn't exist";
+ if ($self->{'read_only'}) {
+ $msg = "doesn't exist";
+ } else {
+ $log->info("creating $dir");
+ mkpath $dir;
+ }
} elsif (! -d $dir) {
$msg = "is not directory";
} elsif (! -w $dir) {