/// <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}"; } }
/// <summary> /// 资源释放 /// </summary> public void Dispose() { _option = null; _currentURI = null; _ftpRequest = null; }