Skip to content

SftpClient.ListDirectory().ToList() now returns list of (ISftpFile) instead of (SftpFile) #1226

@brhunt1958

Description

@brhunt1958

Is this by design?

I just upgraded SSH.Net (via NuGet) to the most current version.

My ListDirectory used to return SftpFile, now returns ISftpFile.

I have worked around this by casting: List listFileNames = (sftp.ListDirectory("/Outbound/").Cast()).ToList();

This works, but is the ISftpFile return a bug? Or is this the new-normal?

Thanks.

Bryan Hunt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions