IPWorks SSH 2020 JavaScript Edition

Questions / Feedback?

FileType Property

The type of file.

Syntax

async sftp.getFileType(): SftpFileTypes

Possible Values

  1 (sftRegular), 
  2 (sftDirectory), 
  3 (sftSymLink), 
  4 (sftSpecial), 
  5 (sftUnknown), 
  6 (sftSocket), 
  7 (sftCharDevice), 
  8 (sftBlockDevice), 
  9 (sftFIFO)

Default Value

0

Remarks

The type of file. FileType may be one of the following values:

1 (sftRegular - default)A normal file.
2 (sftDirectory)A directory.
3 (symlink)The file is a Unix symbolic link.
4 (sftSpecial)The file type is a special system file.
5 (sftUnknown)The file type is unknown.
6 (sftSocket)The file handle is a socket handle.
7 (sftCharDevice)The file handle is a character input device.
8 (sftBlockDevice)The file handle is a block input device.
9 (sftpFIFO)The file handle is a buffering input device.

This property is read-only and not available at design time.

 
 
Copyright (c) 2020 /n software inc. - All rights reserved.
IPWorks SSH 2020 JavaScript Edition - Version 20.0 [Build 7525]