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; }