Example #1
0
 /// <summary>
 /// Copies files on the remote machine.
 /// </summary>
 /// <param name="source">The fully qualified name of the source file with optional wildcards.</param>
 /// <param name="destination">The fully qualified name of the destination file.</param>
 /// <param name="recursive"><c>true</c> to recursively copy directories.</param>
 /// <remarks>
 /// This method is able to copy a single file, or a set of files that
 /// match a wildcard pattern.  The method can also tree copy directories
 /// from one location to another if <paramref name="recursive" /> is <c>true</c>.
 /// This method implements the same behavior as <see cref="Helper.CopyFile(string,string,bool)" />.
 /// </remarks>
 public void CopyFile(string source, string destination, bool recursive)
 {
     lock (syncLock)
     {
         Verify();
         remote.CopyFile(source, destination, recursive);
     }
 }