HPCC-9419 WIP: clean existing code before fixing the issue

Only remove duplicated code and the code never being used. No
programming logic change.

Signed-off-by: Kevin Wang <kevin.wang@lexisnexis.com>
HPCC-9420 Pass Roxie directory settings to file copy function

This fix adds Roxie directory settings to file copy function because
those settings define the destinations of the file being copied.

Signed-off-by: Kevin Wang <kevin.wang@lexisnexis.com>
HPCC-9420 Clean more duplicated code

Signed-off-by: Kevin Wang <kevin.wang@lexisnexis.com>
HPCC-9420 Rename three variables

Signed-off-by: Kevin Wang <kevin.wang@lexisnexis.com>
HPCC-9420 Pass offset setting to remote copy

This is a bug in the existing code.

Signed-off-by: Kevin Wang <kevin.wang@lexisnexis.com>
Merge pull request #4527 from wangkx/h9420b

HPCC-9420 Pass Roxie directory settings to file copy function

Reviewed-By: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>