Discuss this help topic in SecureBlackbox Forum

Clouds: Rename file

First obtain a TElGoogleDriveFile object for the file or a TElGoogleDriveDocument for the document to be renamed. Then call its Rename() method. As Google Drive allows a folder to contain several files and/or documents with the same name, the new name is not required to be unique in the parent folder.

C#:


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

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

file.Release();

How To articles about Google Drive cloud

Discuss this help topic in SecureBlackbox Forum