Method MoveToAsync
MoveToAsync(string, CancellationToken)
Moves the content to a new file at the specified path, so that the store no longer removes it. Default copies the content from OpenReadStream() to the new file.
Declaration
public virtual 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 |