Discuss this help topic in SecureBlackbox Forum
Clouds: Create folder
To create a new folder
- Obtain the instance of TElBoxFolder for the parent folder, in which you need to create a new folder.
- Use TElBoxFolder.CreateFolder() method and pass it the name of the new folder.
If the new folder is created successfully, the method returns an instance of
TElBoxFolder for the newly created folder.
If there was a problem during folder ceration (eg. the name is already used), EElBoxServerError will be thrown.
Code property of the exception object will tell you the reason of the problem.
Remember to call TElBoxFolder.Release() method when you don't need the folder object anymore.
C#:
TElBoxFolder newFolder = root.CreateFolder("New Folder");
Console.WriteLine("New folder: {0} (id = {1}, size = {2})",
newFolder.Name, newFolder.ID, newFolder.Size);
newFolder.Release();
How To articles about Box.com cloud
Discuss this help topic in SecureBlackbox Forum