Beispiel #1
0
        public void Noop()
        {
            var sres = _client.BaseSend($"{FTPCommand.NOOP}");

            if (sres.Code != ServerResponseCode.成功)
            {
                throw new Exception($"code:{sres.Code},reply:{sres.Reply}");
            }
        }
Beispiel #2
0
 public void Noop()
 {
     try
     {
         _client.BaseSend($"{FTPCommand.NOOP}");
     }
     catch (Exception ex)
     {
         LogHelper.Error("FTPClient Noop", ex);
     }
 }