private SftpFile ( ISftpSession sftpSession, string fullName, |
||
sftpSession | ISftpSession | The SFTP session. |
fullName | string | Full path of the directory or file. |
attributes | Attributes of the directory or file. | |
Résultat | 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;
}