TTMSFNCCustomCloudGoogleDrive Class
Base storage component that connects to a Google Drive account and exposes file and folder operations such as listing, search, upload, download, export, delete, move, rename, folder creation, account info and permission management, with both synchronous and promise-based variants.
API unit family: TMSFNCCloudGoogleDrive
Inherits from: TTMSFNCCustomCloudGoogleStorage
Syntax
TTMSFNCCustomCloudGoogleDrive = class(TTMSFNCCustomCloudGoogleStorage)
Remarks
This is the non-published base class; use the published TTMSFNCCloudGoogleDrive component on a form. Authentication is configured through the inherited authentication settings before any operation is called.
Properties
| Name | Description |
|---|---|
| GDrive | Provides access to the cached collection of drive items. |
| Info | Account information for the connected drive, including storage usage. |
| PromiseFileInfo | Item describing the file whose metadata was retrieved by the most recent promise-based request. |
Methods
| Name | Description |
|---|---|
| CreateFolder | Creates a new folder. |
| CreateFolderPromise | Promise-based variant of CreateFolder. |
| Delete | Deletes an item. |
| Download | Downloads an item to a local file. |
| ExportFile | Exports a document-format item to a local file using a spreadsheet target format. |
| MoveFile | Moves an item into a target folder. |
| MoveFileToRoot | Moves an item to the account root. |
| RenameFile | Renames an item. |
| Search | Searches a folder for items matching a query and reports the result through the search-complete event. |
| SearchFile | Searches the account for files matching a name and returns the matched items. |
| SearchFilePromise | Promise-based variant of SearchFile. |
| SearchFolder | Searches the account for folders matching a name and returns the matched items. |
| SearchFolderPromise | Promise-based variant of SearchFolder. |
| SearchList | Searches for items matching a query and returns the result list. |
| SearchListPromise | Promise-based variant of SearchList. |
| SearchPromise | Promise-based variant of Search. |
| Upload | Uploads a local file into a folder. |