Renci.SshNet.Sftp.SftpFile.SftpFile C# (CSharp) Method

SftpFile() private method

Initializes a new instance of the SftpFile class.
or is null.
private SftpFile ( ISftpSession sftpSession, string fullName, SftpFileAttributes attributes ) : System
sftpSession ISftpSession The SFTP session.
fullName string Full path of the directory or file.
attributes SftpFileAttributes Attributes of the directory or file.
return System
        internal SftpFile(ISftpSession sftpSession, string fullName, SftpFileAttributes attributes)
        {
            if (sftpSession == null)
                throw new SshConnectionException("Client not connected.");

            if (attributes == null)
                throw new ArgumentNullException("attributes");

            if (fullName == null)
                throw new ArgumentNullException("fullName");

            _sftpSession = sftpSession;
            Attributes = attributes;

            Name = fullName.Substring(fullName.LastIndexOf('/') + 1);

            FullName = fullName;
        }