SSH.NET icon indicating copy to clipboard operation
SSH.NET copied to clipboard

Why IsReguarFile() returns false on a text file?

Open lchengNetBall opened this issue 8 years ago • 2 comments

Hi,

I have created a text file, but when I step through the code IsRegularFile() returns false.

What is the reason for this?

Regards Li

lchengNetBall avatar Mar 01 '18 09:03 lchengNetBall

I have the same problem for files with a .dat extension

CasperWSchmidt avatar Nov 06 '18 10:11 CasperWSchmidt

it's an error inside the sftpClient.ListDirectory() if you get attributes to the same file via sftpClient.GetAttributes(), you will have IsRegularFile = true

#bug

hidegh avatar Oct 16 '24 14:10 hidegh