I've figured out how to search for an existing folder using TMSFNCCloudStorageServices
but the Search() method is different in the TMSFNCCloudGoogleDrive component.
The documents says this about sample code for TMSFNCCloudStorageServices:
See TTMSFNCCloudStorageServices for sample code
That sample code only uses the TMSFNCCloudStorageServices component and not the TMSFNCCloudGoogleDrive component (which have different Search methods).
How do I search for a folder using TMSFNCloudGoogleDrive and then get the files in that folder?
Searching for a folder in TTMSFNCCloudGoogleDrive is pretty similar to how it works in TTMSFNCCloudStorageServices.
Use the SearchFolder method with the folder name as parameter. If the folder exists, this returns a TTMSFNCCloudItem.
Use the TTMSFNCCloudItem as the parameter value for the GetFolderList call.
This will return the files in the provided folder.
The Search function of TTMSFNCCloudGoogleDrive is explained in the online doc:
TTMSFNCCloudGoogleDrive: Usage A component that provides access to the Google Drive service. It allows to read, create and delete folders as well as read, upload, move, rename, download and delete files. Authorization information Client ID, Client...
Unfortunately there is currently no specific sample code available.
The issue I'm having (which is addressed in another thread) is that the SearchFolder method works on Windows and Android but fails on MacOS and iOS.
When running on MacOS or iOS, the resulting call to TMSFNCCloudGoogleDrive1.Search has ARequestResult.Success=True and ASearchResults.Count=0 which I assume means the search worked but it did not find the folder.
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.