Discuss this help topic in SecureBlackbox Forum

Clouds: Rename file

First obtain a TElOneDriveFile object for the file to be renamed. Then call its Rename() method. If a file or a folder with this name already exists, EElOneDriveServerError exception with "resource_already_exists" code is thrown.

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 OneDrive cloud

Discuss this help topic in SecureBlackbox Forum