Discuss this help topic in SecureBlackbox Forum

Clouds: Restore deleted file

As long as the file is in Trash, you can restore it by calling TElBoxDataStorage.Restore() method. By default the file will be restored to the old parent folder and with the same name. You can change this behaviod by calling Restore() method and passing it new parent folder and/or new name.

C#:


TElBoxFile trashedFile = storage.AcquireTrashedFile(@"...");
Console.WriteLine("File: {0}", trashedFile.Name);

// restore to the same parent folder with a new name
trashedFile.Restore(null, "New File Name");
Console.WriteLine("File: {0}", trashedFile.Name);

trashedFile.Release();

How To articles about Box.com cloud

Discuss this help topic in SecureBlackbox Forum