|
|
|
|
|
DriveDownloadDirectory (Function) In french: DriveRécupèreRépertoire Downloads a directory and its files from a remote drive to the user's computer.
oOAuth2Param is OAuth2Parameters
oOAuth2Param.ClientID = "client_id"
oOAuth2Param.ClientSecret = "client_secret"
oOAuth2Param.RedirectionURL = "http://localhost:9000/"
oDrive is Drive
oDrive = oDriveConnect(oOAuth2Param)
sDirectory is string
sDirectory = fSelectDir(fExeDir(), "Local directory where to download the directory")
IF DriveDownloadDirectory(oDrive, "/MyPhotos", sDirectory) = False THEN
Error("Unable to download directory", ErrorInfo())
RETURN
END
Syntax
<Result> = DriveDownloadDirectory(<Drive> , <Directory to download> , <Local directory>)
<Result>: Boolean - if the directory and its files have been downloaded,
- False otherwise. 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 directory is not downloaded. <Directory to download>: Character string Absolute path of the directory to be downloaded from the remote drive. If this parameter does not correspond to a valid path, the directory will not be downloaded. <Local directory>: Character string Absolute path of the directory to be saved on the local computer. If this parameter does not correspond to a valid path, or if a directory with the same name already exists, the directory will not be downloaded. Remarks The downloaded directory and its files are no longer linked to the drive. No changes made to the directory or to its files on the remote drive will be reflected on the downloaded version (and vice versa).
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…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|