Name

ProductDir — specify directory containing database files

SYNOPSIS

directory

DESCRIPTION

Specify the directory containing database files. The directory cannot be absolute, unless NoAbsolute is disabled.

DIRECTIVE TYPE AND DEFAULT VALUE

Catalog directive

EXAMPLES

Example: Setting ProductDir

ProductDir databases

Example: Setting ProductDir to an absolute value

NoAbsolute 0

ProductDir /data/catalog/for-sale

NOTES

The specified location is, unless absolute, treated relative to CATROOT.

This directive is also available through an alias DataDir.

AVAILABILITY

ProductDir is available in Interchange versions:

4.6.0-5.7.0 (git-head)

SOURCE

Interchange 5.7.0:

Source: lib/Vend/Config.pm
Line 542

['ProductDir',       'relative_dir',     'products'],

Source: lib/Vend/Config.pm
Line 3956 (context shows lines 3956-3970)

sub parse_relative_dir {
my($var, $value) = @_;

if (absolute_or_relative($value)) {
  config_error('Path %s not allowed in %s directive',
          $value, $var);
}

$C->{Source}{$var} = $value;

$value = "$C->{VendRoot}/$value"
  unless file_name_is_absolute($value);
$value =~ s./+$..;
$value;
}

AUTHORS

Interchange Development Group

SEE ALSO

RunDir(7ic), ScratchDir(7ic)

DocBook! Interchange!