/// <summary> /// Get size for a remote file /// </summary> /// <param name="remoteFile"> /// name of remote file /// </param> /// <returns> /// size of file in bytes /// </returns> public long Size(string remoteFile) { string reply = control.SendCommand("SIZE " + remoteFile); lastValidReply = control.ValidateReply(reply, "213"); // parse the reply string ... long fs = long.Parse(lastValidReply.ReplyText); return fs; }
/// <summary> /// Get size for a remote file /// </summary> /// <param name="remoteFile"> /// name of remote file /// </param> /// <returns> /// size of file in bytes /// </returns>