g4gdrv_moveFile

*//////////////////////////////////////////////////////////////*

* g4gdrv_moveFile - Move File *

* *

* Output: *

* out_errMsg - The error message (if error exists). *

* *

* Returns: *

* -1 for error, 0 for success *

* *

* Settable Variables ([r]=required) *

* id - Google ID [r] *

* file_id - The Google File ID of the file to move [r] *

* from_folder_id - The Google ID of the folder to move *

* the file from. *

* to_folder_id - The Google ID of the folder to move the *

* file to. *

* ccsid - The CCSID to use (1252) *

* debug - Turn on Debug (*NO, *YES) *

* debug_file - The debug file name. *

* (/tmp/g4g_[id]_moveFile.txt) *

* *

*//////////////////////////////////////////////////////////////*

D g4gdrv_moveFile...

D PR 10i 0

D out_errMsg 256 Options(*NOPASS)

g4gdrv_moveFile will move a file from one Google Drive Folder to another.

Returns: 0 for successful upload, -1 for error.

Optional Parameters:

  • Error Message (output) - Error message

Settable Variables (use g4gdrv_setValue):

  • id (required) - Your Google ID

  • file_id - The Google File ID of the file you wish to move.

  • from_folder_id - The Google Folder ID of the folder you wish to move the file from.

  • to_folder_id - The Google Folder ID of the folder you wish to move the file to.

  • ccsid - The CCSID to use. The default is 1252.

  • debug - Specify *YES to turn on debug, or *NO to turn off debug. The default is *NO.

  • debug_file - Specify the fully qualified file name for the main debug file. The default is /tmp/g4g_[id]_moveFile.txt