your demo works fine, because you go step by step in a folder and save the Folder in variable CurrentFolder.
My problem is, I dive directly in a folder with a known and saved ID of this folder. With this I get all files from the specific folder, but in OnGetFolderList() it seems the AFolderList don't give me the ParentFolder of each file. But I need the ParentFolder as TTMSFNCCloudItem to update (Delete and Upload) the file.
for var a := 0 to AFolderList.Count-1 do begin Memo1.Lines.Add('Filename: ' + AFolderList.Items[a].Filename); try Memo1.Lines.Add('ParentFolder: ' + AFolderList.Items[a].ParentFolder.Filename); except Memo1.Lines.Add('PF: except'); end; end;
How can I get the Parentfolder of the files?