Esempio n. 1
0
 /// <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));
 }