+
+ # Check $dir is a directory (sanity check - overly aggressive?)
+ if ($dir && ! -d "$blosxom::datadir/$dir") {
+ debug(2, "dir '$dir' is set but not a directory");
+ return 1;
+ }
+
+ debug(1, "dir '$dir' not set or exists and directory - setting \$blosxom::path_info");
+ $blosxom::path_info = $dir;
+ $blosxom::flavour = $flavour;
+ $blosxom::path_info_yr = undef;
+ return 1;