X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FSpot.pm;h=00b03d845e0cd35ff933f4a595c27dc7c89a4bc7;hb=1d5894e63b48f6996ef75654faf0806d69c7b502;hp=d5b5adf93994ef4aa6f5fba77689268feff524c3;hpb=b5b58db69484da5554b4f7e10b813d13e8cf16cb;p=spider.git diff --git a/perl/Spot.pm b/perl/Spot.pm index d5b5adf9..00b03d84 100644 --- a/perl/Spot.pm +++ b/perl/Spot.pm @@ -27,6 +27,11 @@ $defaultspots = 10; # normal number of spots to return $maxdays = 35; # normal maximum no of days to go back $dirprefix = "$main::data/spots"; +sub init +{ + mkdir "$dirprefix", 0777 if !-e "$dirprefix"; +} + sub prefix { return $dirprefix;