Using UNC & file shares for SftpServer file storage.

0
I can't figure out how to make network shares work with SftpSshServer . It throws exceptions when I try something like this to define a User... Server.Users.Add("test", "password", @"Z:\") ...or any other possible variant of the directory path I can think of. The exception message is: System.ArgumentException: 'Existing path required. (Parameter 'virtualRootPath')'
 
asked 4/17/2021 7:06:17 PM
add a comment

1 Answers

0
Here I go again answering my own question... I figured this out! My use case was to have SftpSshServer have Azure File Shares or Blob storage be the storage backing for the Sftp user. I was able to map the Azure storage as a local network share and then mount the share in my application code, wrapping the server object instance. It works now like a charm. If there is sufficient interest, I'll post my solution here.
 
answered 4/19/2021 7:04:57 AM
add a comment

Your Answer

Not the answer you're looking for? Browse other questions tagged sftp server or ask your own question.