/// <summary> /// Copy files. See: https://github.com/FrendsPlatform/Frends.File#Copy /// </summary> /// <returns>List [ Object { string SourcePath, string Path } ]</returns> public static async Task <IList <FileInBatchResult> > Copy( [PropertyTab] CopyInput input, [PropertyTab] CopyOptions options, CancellationToken cancellationToken) { return(await ExecuteActionAsync(() => CopyCommand.ExecuteAsync(input, options, cancellationToken), options.UseGivenUserCredentialsForRemoteConnections, options.UserName, options.Password).ConfigureAwait(false)); }
public static Task <IList <FileInBatchResult> > ExecuteAsync(CopyInput input, CopyOptions options, CancellationToken cancellationToken) { return(FileBatchCommand.ExecuteAsync(input, options, CopyFileAsync, cancellationToken, actionNameInErrors: "copied")); }