HTTP API Toolkit HTTP API Toolkit
HTTP API Toolkit HTTP API Toolkit
DocFX + Singulink = ♥

Search Results for

    Method MoveToAsync

    MoveToAsync(string, CancellationToken)

    Moves the file to a new file at the specified path, so that it is kept after the handler finishes. A store that keeps the file in a file system moves it, which copies nothing on the same volume, and other stores copy it there.

    Declaration
    public Task MoveToAsync(string destinationPath, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string destinationPath

    The path of the new file, which must not exist.

    CancellationToken cancellationToken

    A token that cancels the operation.

    Returns
    Type Description
    Task
    Exceptions
    Type Condition
    IOException

    The file at destinationPath exists, or the file cannot be moved, such as while a stream of it is open.

    © Singulink. All rights reserved.