Discuss this help topic in SecureBlackbox Forum

Clouds: Rename folder

To rename a folder use TElBoxFolder.Rename() method of the folder object, which you want to rename. Pass the new name as a parameter. If the folder or file with such name already exists, EElBoxServerError exception with "item_name_in_use" will be thrown.

C#:


// get an object for the folder to be renamed
TElBoxFolder folder = storage.AcquireFolder(@"...");
Console.WriteLine("Folder: {0}", folder.Name);

// actually, rename the folder
folder.Rename("New Folder Name");
Console.WriteLine("Renamed: {0}", folder.Name);

// don't forget to release the object
folder.Release();

How To articles about Box.com cloud

Discuss this help topic in SecureBlackbox Forum