mirror of
https://github.com/jcreek/Creek.FileRepository.git
synced 2026-07-12 18:33:43 +00:00
fix(*): Initialise content with a new stream so it can be written to
This commit is contained in:
@@ -61,6 +61,7 @@ namespace FileRepository.Repositories
|
|||||||
public async Task<RepoFile> ReadFileAsync(string fileName)
|
public async Task<RepoFile> ReadFileAsync(string fileName)
|
||||||
{
|
{
|
||||||
RepoFile repoFile = new RepoFile();
|
RepoFile repoFile = new RepoFile();
|
||||||
|
repoFile.Content = new System.IO.MemoryStream();
|
||||||
|
|
||||||
using (SftpClient client = new SftpClient(this.host, this.port == 0 ? 22 : this.port, this.username, this.password))
|
using (SftpClient client = new SftpClient(this.host, this.port == 0 ? 22 : this.port, this.username, this.password))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user