uc_edi_archive_file uses the file_move api function, so you can't archive your edi files to a non-public folder in your home directory - even though you can export them there.
Using rename() instead of file_move() will fix this - as below:
function uc_edi_archive_file($filename = ''){
$source = variable_get('uc_edi_order_export_dir', '') .'/'. $filename;
$destination = variable_get('uc_edi_order_export_archive_dir', '') . $filename;
if (rename($source, $destination)){
drupal_set_message(t('Order EDI export file %file was archived successfully.', array('%file' => $filename)));
}
drupal_goto('admin/store/orders/edi/download');
}
Comments
Comment #1
jeremdow commentedoops - bad patch - reattached.