comparison src/com/trilead/ssh2/sftp/AttribFlags.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 * Attribute Flags. The 'valid-attribute-flags' field in
7 * the SFTP ATTRS data type specifies which of the fields are actually present.
8 *
9 * @author Christian Plattner, plattner@trilead.com
10 * @version $Id: AttribFlags.java,v 1.1 2007/10/15 12:49:55 cplattne Exp $
11 *
12 */
13 public class AttribFlags {
14 /**
15 * Indicates that the 'allocation-size' field is present.
16 */
17 public static final int SSH_FILEXFER_ATTR_SIZE = 0x00000001;
18
19 /** Protocol version 6:
20 * 0x00000002 was used in a previous version of this protocol.
21 * It is now a reserved value and MUST NOT appear in the mask.
22 * Some future version of this protocol may reuse this value.
23 */
24 public static final int SSH_FILEXFER_ATTR_V3_UIDGID = 0x00000002;
25
26 /**
27 * Indicates that the 'permissions' field is present.
28 */
29 public static final int SSH_FILEXFER_ATTR_PERMISSIONS = 0x00000004;
30
31 /**
32 * Indicates that the 'atime' and 'mtime' field are present
33 * (protocol v3).
34 */
35 public static final int SSH_FILEXFER_ATTR_V3_ACMODTIME = 0x00000008;
36
37 /**
38 * Indicates that the 'atime' field is present.
39 */
40 public static final int SSH_FILEXFER_ATTR_ACCESSTIME = 0x00000008;
41
42 /**
43 * Indicates that the 'createtime' field is present.
44 */
45 public static final int SSH_FILEXFER_ATTR_CREATETIME = 0x00000010;
46
47 /**
48 * Indicates that the 'mtime' field is present.
49 */
50 public static final int SSH_FILEXFER_ATTR_MODIFYTIME = 0x00000020;
51
52 /**
53 * Indicates that the 'acl' field is present.
54 */
55 public static final int SSH_FILEXFER_ATTR_ACL = 0x00000040;
56
57 /**
58 * Indicates that the 'owner' and 'group' fields are present.
59 */
60 public static final int SSH_FILEXFER_ATTR_OWNERGROUP = 0x00000080;
61
62 /**
63 * Indicates that additionally to the 'atime', 'createtime',
64 * 'mtime' and 'ctime' fields (if present), there is also
65 * 'atime-nseconds', 'createtime-nseconds', 'mtime-nseconds'
66 * and 'ctime-nseconds'.
67 */
68 public static final int SSH_FILEXFER_ATTR_SUBSECOND_TIMES = 0x00000100;
69
70 /**
71 * Indicates that the 'attrib-bits' and 'attrib-bits-valid'
72 * fields are present.
73 */
74 public static final int SSH_FILEXFER_ATTR_BITS = 0x00000200;
75
76 /**
77 * Indicates that the 'allocation-size' field is present.
78 */
79 public static final int SSH_FILEXFER_ATTR_ALLOCATION_SIZE = 0x00000400;
80
81 /**
82 * Indicates that the 'text-hint' field is present.
83 */
84 public static final int SSH_FILEXFER_ATTR_TEXT_HINT = 0x00000800;
85
86 /**
87 * Indicates that the 'mime-type' field is present.
88 */
89 public static final int SSH_FILEXFER_ATTR_MIME_TYPE = 0x00001000;
90
91 /**
92 * Indicates that the 'link-count' field is present.
93 */
94 public static final int SSH_FILEXFER_ATTR_LINK_COUNT = 0x00002000;
95
96 /**
97 * Indicates that the 'untranslated-name' field is present.
98 */
99 public static final int SSH_FILEXFER_ATTR_UNTRANSLATED_NAME = 0x00004000;
100
101 /**
102 * Indicates that the 'ctime' field is present.
103 */
104 public static final int SSH_FILEXFER_ATTR_CTIME = 0x00008000;
105
106 /**
107 * Indicates that the 'extended-count' field (and probablby some
108 * 'extensions') is present.
109 */
110 public static final int SSH_FILEXFER_ATTR_EXTENDED = 0x80000000;
111 }