How to create a folder

Hello,


I need to create a folder under a specific folder without using the treview.

I tried this but it didn't do anything:

var
 di : TDropBoxItem;
begin
  di := TDropBoxItem.Create(nil);
  di.Path := '/Test';
  MainForm.Storage.CreateFolder(di as TTMSFMXCloudItem,'Videos');
end;

How can I do this?
Thank you very much!

Hi,


Can you please make sure the TDropBoxItem is configured as a folder?

Example:

  di.ItemType := ciFolder;

Hi Bart,


Thank you very much, that solved the problem! :-)