Quantcast
Channel: Rebex Q&A Forum - Recent questions and answers
Viewing all articles
Browse latest Browse all 3862

GetNodeSurrogate event handler.

$
0
0

Hello, could you help me with an example of implementing GetNodeSurrogate event handler? I want to implement assignment to the e.ResultNode the value of the root directory. But when I do e.ResultNode = new DirectoryNode("/", null); The project is being frozen and after throws 'Session operation has timed out' in SSH.NET lib.

The main thing what I want to do: I want to process different paths and parse it. Based on the parsed data I will tranfer the stream in SetContentSurrogate event handler to different folders onto remote server. When I try to receive files with the path as /one/two/three/file.csv the client gives an exception Renci.SshNet.Common.SftpPathNotFoundException : Path not found. after GetNodeSurrogate event.

Thanks.


Viewing all articles
Browse latest Browse all 3862

Trending Articles