/// <summary> /// Fetch a file from the remote location down here. /// </summary> /// <param name="fileToGet"></param> /// <param name="dirName"></param> /// <param name="connection"></param> /// <param name="statusUpdate"></param> private void ReceiveFile(FileInfo fileToGet, string dirName, ISSHConnection connection, Action <string> statusUpdate = null) { string linuxPath = $"{dirName}/{fileToGet.Name}"; connection.CopyRemoteFileLocally(linuxPath, fileToGet, statusUpdate); }