FileInfo->Attributes->FileType allways returns 4

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
Bert
Posts: 4
Joined: Fri 30 Apr 2010 09:17

FileInfo->Attributes->FileType allways returns 4

Post by Bert » Sun 09 May 2010 18:02

I'm using c++ Builder 2009.

FileInfo->Filename;
... returns correct value

FileInfo->Attributes->Size
... returns correct value

... but ..

FileInfo->Attributes->FileType
... allways returns '4' - even the file is a folder

Am I thinking the wrong way to retrive the FileType?

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Tue 11 May 2010 08:27

The FileType property is returned by SFTP server with protocol version 4 and higher. For SFTP version 3 you can use the TScSFTPFileInfo.Longname property to detect the file type.

Post Reply