$ref->{suffix} = $suffix if $suffix;
$ref->{sort} = $sort;
# make sure the directory exists
mkdir($ref->{prefix}, 0777) unless -e $ref->{prefix};
$ref->{suffix} = $suffix if $suffix;
$ref->{sort} = $sort;
# make sure the directory exists
mkdir($ref->{prefix}, 0777) unless -e $ref->{prefix};