Ejemplo n.º 1
0
 public static async Task MoveFilesAsync(string sourceFilePath, string targetFilePath, CancellationToken cancellationToken)
 {
     // reuse copy, source files will be deleted after all have finished
     // TODO: for move between directories on the same disk, the File.Move would be more performant, but also could not be rolled back
     await CopyCommand.CopyFileAsync(sourceFilePath, targetFilePath, cancellationToken).ConfigureAwait(false);
 }