Moves the file to the specified destination file, truncating any remaining data in the destination file.
- Namespace
- Statiq
.Common - Containing Type
- IFileExtensions
Syntax
public static Task MoveToAsync(this IFile source, IFile destination, CancellationToken cancellationToken = default(CancellationToken))
Parameters
| Name | Type | Description |
|---|---|---|
| source | IFile | The source file. |
| destination | IFile | The destination file. |
| cancellationToken | CancellationToken | A cancellation token. |
Return Value
| Type | Description |
|---|---|
| Task |