|
|
|
|
|
DriveListFileGgl (Function) In french: DriveListeFichierGgl
Not available
Lists Google Docs Editors files (Docs, Sheets, etc.) present on Google Drive. oOAuth2Param is OAuth2Parameters
oOAuth2Param.ClientID = "client_id"
oOAuth2Param.ClientSecret = "client_secret"
oOAuth2Param.RedirectionURL = "http://localhost:9000/"
gglMyDrive is gglDrive
gglMyDrive = GglDriveConnect(oOAuth2Param)
arrGglFile is array of GglFile
arrGglFile = DriveListFileGgl(gglMyDrive, "/", frRecursive)
FOR EACH Queue OF arrGglFile
SWITCH Queue.MimeType
CASE mimeTypeGglDocs: Queue.ExportMimeType = mimeTypeDOCX
CASE mimeTypeGglSheets: Queue.ExportMimeType = mimeTypeXLSX
OTHER CASE: Queue.ExportMimeType = mimeTypePDF
END
let ResDownload = DriveDownloadGglFile(gglMyDrive, arrGglFile[1], "c:\MyDocuments")
IF ErrorOccurred THEN
Trace ("An error has occurred")
RETURN
END
END
Syntax
<Result> = DriveListFileGgl(<Google Drive> , <Start directory> [, <Options>])
<Result>: Array of GglFile variables Array of GglFile variables corresponding to the files found. <Google Drive>: gglDrive variable Name of the gglDrive variable that corresponds to the Google Drive service to be used. The connection to the drive must have been previously established. Otherwise, files will not be listed. <Start directory>: Character string Drive directory from which files are to be listed. This directory must be an absolute path: - Directory names must be separated by '/' or '\'.
- Directory names must start with '/' or '\'.
If the path is invalid, an error will be generated. <Options>: Optional Integer constant (or combination of constants) Type of iteration:
| | New in version 2025fdFullInformation | Provides detailed information on the files hosted on the drive. If this constant is specified, the Size and DateLastModified properties of the GglFile variable will be specified. This constant must be used with the frNotRecursive or frRecursiveconstants. | frNotRecursive | The iteration is non-recursive. Subdirectories are ignored. | frRecursive (Default value) | The iteration is recursive. Subdirectories are automatically taken into account. |
Remarks <Start 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…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|