fileType (property)

The type of file.

Syntax

@property (nonatomic,readonly,assign,getter=fileType) int fileType;
- (int)fileType;

/* Possible Values */
SFT_REGULAR(1),
SFT_DIRECTORY(2),
SFT_SYM_LINK(3),
SFT_SPECIAL(4),
SFT_UNKNOWN(5),
SFT_SOCKET(6),
SFT_CHAR_DEVICE(7),
SFT_BLOCK_DEVICE(8),
SFT_FIFO(9)
public var fileType: SftpFileTypes {
  get {...}
}
public enum SftpFileTypes : Int32 { case sftRegular = 1 case sftDirectory = 2 case sftSymLink = 3 case sftSpecial = 4 case sftUnknown = 5 case sftSocket = 6 case sftCharDevice = 7 case sftBlockDevice = 8 case sftFIFO = 9 }

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.

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