Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.
This repository was archived by the owner on Aug 31, 2023. It is now read-only.

CopyClient.RenameFileAsync() persistently fails and returns false #1

Open

Description

@viciousviper

Reproduce error as indicated below.

Append the following lines to the end of the static async Task Run() method in the Program.cs of the sample application and execute the sample.

var contentStream = new System.IO.MemoryStream(new byte[] { 65, 20, 65 });

var originalFile = await client.FileSystemManager.UploadNewFileStreamAsync(rootFolder.Id, "Original.txt", contentStream, true);

var success = await client.FileSystemManager.RenameFileAsync(originalFile.Id, "RenamedFile.txt", true);

var renamedFileInfo = await client.FileSystemManager.GetFileSystemInformationAsync(originalFile.Id);

The call to RenameFileAsync() in the second to last added line is expected to perform a rename of the uploaded file "Original.txt" to "RenamedFile.txt". It will, however, always fail returning false. The uploaded file will not be renamed and keep its name at "Original.txt".

Environment used: Visual Studio 2015RC / .NET 4.6RC

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions