STD.File.MoveExternalFile( location, frompath, topath [ , planename ] )
location | A null-terminated string containing the IP address of the remote machine. Optional if planename is provided. |
frompath | A null-terminated string containing the path/name of the file to move. |
topath | A null-terminated string containing the path/name of the target file. |
planeName | A null-terminated string containing name of the data plane containing the file. Optional if location is provided, but planename is preferred. |
The MoveExternalFile function moves the single physical file specified by the frompath to the topath. Both frompath and topath are on the same remote machine, identified by the location. The dafileserv utility program must be running on the location machine.
Example:
IMPORT STD; IP := ''; infile := '/var/lib/HPCCSystems/dropzone/originalperson'; outfile := '/var/lib/HPCCSystems/dropzone/originalperson_bak'; planename := 'mydropzone'; STD.File.MoveExternalFile(IP,infile,outfile,planename);