comparison src/com/trilead/ssh2/sftp/AttribTypes.java @ 0:0ce5cc452d02

initial version
author Carl Byington <carl@five-ten-sg.com>
date Thu, 22 May 2014 10:41:19 -0700
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:0ce5cc452d02
1
2 package com.trilead.ssh2.sftp;
3
4 /**
5 *
6 * Types for the 'type' field in the SFTP ATTRS data type.
7 * <p>
8 * "<i>On a POSIX system, these values would be derived from the mode field
9 * of the stat structure. SPECIAL should be used for files that are of
10 * a known type which cannot be expressed in the protocol. UNKNOWN
11 * should be used if the type is not known.</i>"
12 *
13 * @author Christian Plattner, plattner@trilead.com
14 * @version $Id: AttribTypes.java,v 1.1 2007/10/15 12:49:55 cplattne Exp $
15 *
16 */
17 public class AttribTypes {
18 public static final int SSH_FILEXFER_TYPE_REGULAR = 1;
19 public static final int SSH_FILEXFER_TYPE_DIRECTORY = 2;
20 public static final int SSH_FILEXFER_TYPE_SYMLINK = 3;
21 public static final int SSH_FILEXFER_TYPE_SPECIAL = 4;
22 public static final int SSH_FILEXFER_TYPE_UNKNOWN = 5;
23 public static final int SSH_FILEXFER_TYPE_SOCKET = 6;
24 public static final int SSH_FILEXFER_TYPE_CHAR_DEVICE = 7;
25 public static final int SSH_FILEXFER_TYPE_BLOCK_DEVICE = 8;
26 public static final int SSH_FILEXFER_TYPE_FIFO = 9;
27 }