Renci.SshNet.SftpClient.GetStatus C# (CSharp) Method

GetStatus() public method

Gets status using [email protected] request.
Client is not connected. is null. The method was called after the client was disposed.
public GetStatus ( string path ) : SftpFileSytemInformation
path string The path.
return SftpFileSytemInformation
        public SftpFileSytemInformation GetStatus(string path)
        {
            CheckDisposed();

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

            if (_sftpSession == null)
                throw new SshConnectionException("Client not connected.");

            var fullPath = _sftpSession.GetCanonicalPath(path);

            return _sftpSession.RequestStatVfs(fullPath);
        }