2 package com.trilead.ssh2.sftp;
\r
6 * Attribute Flags. The 'valid-attribute-flags' field in
\r
7 * the SFTP ATTRS data type specifies which of the fields are actually present.
\r
9 * @author Christian Plattner, plattner@trilead.com
\r
10 * @version $Id: AttribFlags.java,v 1.1 2007/10/15 12:49:55 cplattne Exp $
\r
13 public class AttribFlags
\r
16 * Indicates that the 'allocation-size' field is present.
\r
18 public static final int SSH_FILEXFER_ATTR_SIZE = 0x00000001;
\r
20 /** Protocol version 6:
\r
21 * 0x00000002 was used in a previous version of this protocol.
\r
22 * It is now a reserved value and MUST NOT appear in the mask.
\r
23 * Some future version of this protocol may reuse this value.
\r
25 public static final int SSH_FILEXFER_ATTR_V3_UIDGID = 0x00000002;
\r
28 * Indicates that the 'permissions' field is present.
\r
30 public static final int SSH_FILEXFER_ATTR_PERMISSIONS = 0x00000004;
\r
33 * Indicates that the 'atime' and 'mtime' field are present
\r
36 public static final int SSH_FILEXFER_ATTR_V3_ACMODTIME = 0x00000008;
\r
39 * Indicates that the 'atime' field is present.
\r
41 public static final int SSH_FILEXFER_ATTR_ACCESSTIME = 0x00000008;
\r
44 * Indicates that the 'createtime' field is present.
\r
46 public static final int SSH_FILEXFER_ATTR_CREATETIME = 0x00000010;
\r
49 * Indicates that the 'mtime' field is present.
\r
51 public static final int SSH_FILEXFER_ATTR_MODIFYTIME = 0x00000020;
\r
54 * Indicates that the 'acl' field is present.
\r
56 public static final int SSH_FILEXFER_ATTR_ACL = 0x00000040;
\r
59 * Indicates that the 'owner' and 'group' fields are present.
\r
61 public static final int SSH_FILEXFER_ATTR_OWNERGROUP = 0x00000080;
\r
64 * Indicates that additionally to the 'atime', 'createtime',
\r
65 * 'mtime' and 'ctime' fields (if present), there is also
\r
66 * 'atime-nseconds', 'createtime-nseconds', 'mtime-nseconds'
\r
67 * and 'ctime-nseconds'.
\r
69 public static final int SSH_FILEXFER_ATTR_SUBSECOND_TIMES = 0x00000100;
\r
72 * Indicates that the 'attrib-bits' and 'attrib-bits-valid'
\r
73 * fields are present.
\r
75 public static final int SSH_FILEXFER_ATTR_BITS = 0x00000200;
\r
78 * Indicates that the 'allocation-size' field is present.
\r
80 public static final int SSH_FILEXFER_ATTR_ALLOCATION_SIZE = 0x00000400;
\r
83 * Indicates that the 'text-hint' field is present.
\r
85 public static final int SSH_FILEXFER_ATTR_TEXT_HINT = 0x00000800;
\r
88 * Indicates that the 'mime-type' field is present.
\r
90 public static final int SSH_FILEXFER_ATTR_MIME_TYPE = 0x00001000;
\r
93 * Indicates that the 'link-count' field is present.
\r
95 public static final int SSH_FILEXFER_ATTR_LINK_COUNT = 0x00002000;
\r
98 * Indicates that the 'untranslated-name' field is present.
\r
100 public static final int SSH_FILEXFER_ATTR_UNTRANSLATED_NAME = 0x00004000;
\r
103 * Indicates that the 'ctime' field is present.
\r
105 public static final int SSH_FILEXFER_ATTR_CTIME = 0x00008000;
\r
108 * Indicates that the 'extended-count' field (and probablby some
\r
109 * 'extensions') is present.
\r
111 public static final int SSH_FILEXFER_ATTR_EXTENDED = 0x80000000;
\r