How to get content of cloud?

Hi,

How to get content of cloud without involved "TMSFNCCloudDropBox1.GetFolderList" ?

A sample will be highly appreciated!

Thank you!

Hi,

I'm not sure I understand your question correctly.
Can you please explain exactly what you are trying to do and/or what is going wrong?

I need a list of files from the cloud (possibly from a specific folder)

Now I access "TMSFNCCloudDropBox1.GetFolderList"...

then in:
procedure TfrmMain.TMSFNCCloudDropBox1GetFolderList(Sender: TObject; const AFolderList: TTMSFNCCloudItems;
const ARequestResult: TTMSFNCCloudBaseRequestResult);
begin
ClouditemsToStringlist(AFolderList,cifile,xExt)TStringlist;
end;

function TfrmMain.ClouditemsToStringlist(xCloudItems: TTMSFNCCloudItems; xType: TTMSFNCCloudItemType; xFileExtension: string)
: TStringList;
var
i: integer;
xCi: TTMSFNCCloudItem;
xList:TStringList;
begin
xList := TStringList.Create;
//
for i := 0 to xCloudItems.Count - 1 do
begin
xCi := xCloudItems.Items[i];
//
if xCi.ItemType = xType then
if TPath.GetExtension(xCi.FileName) = xFileExtension then
begin
xList.Add(xCi.FileName);
end;
end;
//
xList.free;
end;

My question is:
Is there a solution to populate a list of CloudItems without accessing "TMSFNCCloudDropBox1.GetFolderList"?

I hope I managed to be quite explicit

Waiting for your answer
Thanks

The GetFolderList call is indeed the correct call to use when you want to retrieve a list of files and folders. You can use this call for the root folder or for a specific folder as well.