Gocator API > Go2 > Classes > Go2System > Functions > Go2System_CopyFile
Gocator 1x00 API
Go2System_CopyFile
Description

Copies a file within the connected sensor.

C
Go2Status Go2System_CopyFile(Go2System system, const Go2Char* sourceName, const Go2Char* destName);
Parameters
Parameters 
Description 
Go2System system 
Go2System object. 
const Go2Char* sourceName 
Source name for the file to be copied. 
const Go2Char* destName 
Destination name for the file (maximum 63 characters). 
Returns

Operation status.

Remarks

If the live configuration, transformation, or profile template is specified as the destination name, any pre-existing Go2Sensor handles may be invalidated. Thus, any handles MUST be updated by assigning them with an appropriate Go2System Sensor function. 

Calling this function will result in writing operations to flash storage. Should the process be disrupted due to power loss or other factors, the sensor may enter Rescue mode.

File

Go2System.h

Copyright (c) 2013 by LMI Technologies Inc. All rights reserved.