Discuss this help topic in SecureBlackbox Forum

Clouds: Rename folder

To rename a folder use TElGoogleDriveDataStorageObject.Rename() method of the folder object, which you want to rename. Pass the new name as a parameter. As Google Drive allows a folder to contain several subfolders with the same name, the new name is not required to be unique in the parent folder.

C#:


TElGoogleDriveFolder folder = storage.AcquireObject(@"...") as TElGoogleDriveFolder;
Console.WriteLine("Original: {0} (parent: {1})", folder.Name, folder.Parent);

folder.Rename("New Folder Name");
Console.WriteLine("Renamed: {0} (parent: {1})", folder.Name, folder.Parent);

folder.Release();

How To articles about Google Drive cloud

Discuss this help topic in SecureBlackbox Forum