|
|
|
|
DriveCopyDirectory (Function) In french: DriveCopieRépertoire
Not available
Copies a directory and its contents to another directory of a remote drive.
oOAuth2Param is OAuth2Parameters
oOAuth2Param.ClientID = "client_id"
oOAuth2Param.ClientSecret = "client_secret"
oOAuth2Param.RedirectionURL = "http://localhost:9000/"
oDrive is Drive
oDrive = oDriveConnect(oOAuth2Param)
IF DriveCopyDirectory(oDrive, "/MyPhotos/2000/", "/Backups/") = False THEN
Error("Unable to copy directory", ErrorInfo())
RETURN
END
Syntax
<Result> = DriveCopyDirectory(<Drive> , <Directory to copy> , <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. <Directory to copy>: Character string Absolute path of the directory to be copied. If this parameter does not correspond to a valid directory path, the directory will not be copied. All the contents of the directory will be copied, including subdirectories and files. <Destination directory>: Character string Path of the destination directory to which the source directory will be copied. If this path is not valid, the directory will not be copied. Missing directories in the path are not created. Remarks <Directory to copy> and <Destination directory> Examples of valid paths: "/holidays directory/2021/" "\photos" Examples of invalid paths: "directoryA/DirectoryB" "This/Path/Is/invalid" "c:\Users\"
Related Examples:
|
Unit examples (WINDEV): Drive functions
[ + ] This example illustrates the use of Drive functions (Google Drive, Dropbox, OneDrive).
|
|
Unit examples (WINDEV Mobile): Drive functions
[ + ] This example illustrates the use of Drive functions (Google Drive, Dropbox, OneDrive).
|
Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|