/// <summary> /// Initializes a new instance of the <see cref="FtpFileSystem"/> class. /// </summary> /// <param name="serverAddress">The server address.</param> /// <param name="credentials">The credentials.</param> public FtpFileSystem(Uri serverAddress, NetworkCredential credentials) { serverAddress.ThrowIfNull(() => serverAddress); credentials.ThrowIfNull(() => credentials); this.client = new FtpClient(credentials); }
/// <summary> /// Initializes a new instance of the <see cref="FtpDirectoryInfo"/> class. /// </summary> /// <param name="fullName">The full name.</param> /// <param name="client">The client.</param> public FtpDirectoryInfo(string fullName, FtpClient client) { fullName.ThrowIfNull(() => fullName); client.ThrowIfNull(() => client); this.FullName = fullName; this.client = client; }
/// <summary> /// Initializes a new instance of the <see cref="FtpFileInfo"/> class. /// </summary> /// <param name="fullName">The full name.</param> /// <param name="lastWriteTime">The last write time.</param> /// <param name="length">The length.</param> /// <param name="client">The client.</param> public FtpFileInfo(string fullName, DateTime lastWriteTime, long length, FtpClient client) { fullName.ThrowIfNull(() => fullName); client.ThrowIfNull(() => client); this.FullName = fullName; this.LastWriteTime = lastWriteTime; this.Length = length; this.client = client; }