Page 1 of 1

FileInfo->Attributes->FileType allways returns 4

Posted: Sun 09 May 2010 18:02
by Bert
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?

Posted: Tue 11 May 2010 08:27
by Dimon
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.