/// <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;
        }
Beispiel #2
0
        /// <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;
        }