type property

SftpFileType get type

Implementation

SftpFileType get type {
  var type = value & _ModeFlags.mask;
  switch (type) {
    case _ModeFlags.isPipe:
      return SftpFileType.pipe;
    case _ModeFlags.isCharacterDevice:
      return SftpFileType.characterDevice;
    case _ModeFlags.isDirectory:
      return SftpFileType.directory;
    case _ModeFlags.isBlockDevice:
      return SftpFileType.blockDevice;
    case _ModeFlags.isRegularFile:
      return SftpFileType.regularFile;
    case _ModeFlags.isSymbolicLink:
      return SftpFileType.symbolicLink;
    case _ModeFlags.isSocket:
      return SftpFileType.socket;
    case _ModeFlags.isWhiteout:
      return SftpFileType.whiteout;
    default:
      return SftpFileType.unknown;
  }
}