コード例 #1
0
        /// <summary>
        /// FTP 操作帮助类
        /// </summary>
        /// <param name="option">FTP 参数选项类</param>
        public FTPHelper(FTPOption option)
        {
            _option     = option;
            _currentURI = $"ftp://{_option.Server}:{_option.Port}";

            if (!string.IsNullOrEmpty(_option.DefaultPath))
            {
                _currentURI = $"ftp://{_option.Server}:{_option.Port}/{ _option.DefaultPath}";
            }
        }
コード例 #2
0
 /// <summary>
 /// 资源释放
 /// </summary>
 public void Dispose()
 {
     _option     = null;
     _currentURI = null;
     _ftpRequest = null;
 }