|
|
|
|
<Drive variable>.CopyFile (Function) In french: <Variable Drive>.CopieFichier
Not available
Copies a file on a remote drive from one directory to another.
oOAuth2Param is OAuth2Parameters
oOAuth2Param.ClientID = "client_id"
oOAuth2Param.ClientSecret = "client_secret"
oOAuth2Param.RedirectionURL = "http://localhost:9000/"
oDrive is Drive
oDrive = oDriveConnect(oOAuth2Param)
IF oDrive.CopyFile("/MyDirectories/File.txt", "/Backups/") = False THEN
Error("Unable to copy file", ErrorInfo())
RETURN
END
Syntax
<Result> = <Drive>.CopyFile(<Path of source file> , <Destination directory>)
<Result>: Boolean - if the file was copied successfully,
- False if an error occurs. To get more details on the error, use ErrorInfo with the errMessage constant.
<Drive>: Drive or gglDrive variable Name of the Drive or gglDrive variable that corresponds to the drive to be used. The connection to the drive must have been previously established. Otherwise, the element is not copied. <Path of source file>: Character string Path and name of the file to copy. This file is located in the drive. If this parameter does not correspond to a valid file path, the file will not be copied. <Destination directory>: Character string Path of the directory to which the file will be copied. If this path is not valid, the file will not be copied. Remarks <Destination directory> parameter Examples of valid paths: "/holidays directory/2021/" "\photos" Examples of invalid paths: "directoryA/DirectoryB" "This/Path/Is/invalid" "c:\Users\" Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|