aboutsummaryrefslogtreecommitdiffstats
path: root/sshlib/src/main/java/com/trilead/ssh2/sftp/AttribFlags.java
blob: ea27871200a9fb165824c70191cc49334c3fb344 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
package com.trilead.ssh2.sftp;

/**
 * 
 * Attribute Flags. The 'valid-attribute-flags' field in
 * the SFTP ATTRS data type specifies which of the fields are actually present.
 *
 * @author Christian Plattner, plattner@trilead.com
 * @version $Id: AttribFlags.java,v 1.1 2007/10/15 12:49:55 cplattne Exp $
 *
 */
public class AttribFlags
{
	/**
	 * Indicates that the 'allocation-size' field is present.
	 */
	public static final int SSH_FILEXFER_ATTR_SIZE = 0x00000001;

	/** Protocol version 6:
	 * 0x00000002 was used in a previous version of this protocol.
	 * It is now a reserved value and MUST NOT appear in the mask.
	 * Some future version of this protocol may reuse this value.
	 */
	public static final int SSH_FILEXFER_ATTR_V3_UIDGID = 0x00000002;

	/**
	 * Indicates that the 'permissions' field is present.
	 */
	public static final int SSH_FILEXFER_ATTR_PERMISSIONS = 0x00000004;

	/**
	 * Indicates that the 'atime' and 'mtime' field are present
	 * (protocol v3).
	 */
	public static final int SSH_FILEXFER_ATTR_V3_ACMODTIME = 0x00000008;

	/**
	 * Indicates that the 'atime' field is present.
	 */
	public static final int SSH_FILEXFER_ATTR_ACCESSTIME = 0x00000008;

	/**
	 * Indicates that the 'createtime' field is present.
	 */
	public static final int SSH_FILEXFER_ATTR_CREATETIME = 0x00000010;

	/**
	 * Indicates that the 'mtime' field is present.
	 */
	public static final int SSH_FILEXFER_ATTR_MODIFYTIME = 0x00000020;

	/**
	 * Indicates that the 'acl' field is present.
	 */
	public static final int SSH_FILEXFER_ATTR_ACL = 0x00000040;

	/**
	 * Indicates that the 'owner' and 'group' fields are present.
	 */
	public static final int SSH_FILEXFER_ATTR_OWNERGROUP = 0x00000080;

	/**
	 * Indicates that additionally to the 'atime', 'createtime',
	 * 'mtime' and 'ctime' fields (if present), there is also
	 * 'atime-nseconds', 'createtime-nseconds',  'mtime-nseconds' 
	 * and 'ctime-nseconds'.
	 */
	public static final int SSH_FILEXFER_ATTR_SUBSECOND_TIMES = 0x00000100;

	/**
	 * Indicates that the 'attrib-bits' and 'attrib-bits-valid'
	 * fields are present.
	 */
	public static final int SSH_FILEXFER_ATTR_BITS = 0x00000200;

	/**
	 * Indicates that the 'allocation-size' field is present.
	 */
	public static final int SSH_FILEXFER_ATTR_ALLOCATION_SIZE = 0x00000400;

	/**
	 * Indicates that the 'text-hint' field is present.
	 */
	public static final int SSH_FILEXFER_ATTR_TEXT_HINT = 0x00000800;

	/**
	 * Indicates that the 'mime-type' field is present.
	 */
	public static final int SSH_FILEXFER_ATTR_MIME_TYPE = 0x00001000;

	/**
	 * Indicates that the 'link-count' field is present.
	 */
	public static final int SSH_FILEXFER_ATTR_LINK_COUNT = 0x00002000;

	/**
	 * Indicates that the 'untranslated-name' field is present.
	 */
	public static final int SSH_FILEXFER_ATTR_UNTRANSLATED_NAME = 0x00004000;

	/**
	 * Indicates that the 'ctime' field is present.
	 */
	public static final int SSH_FILEXFER_ATTR_CTIME = 0x00008000;

	/**
	 * Indicates that the 'extended-count' field (and probablby some
	 * 'extensions') is present.
	 */
	public static final int SSH_FILEXFER_ATTR_EXTENDED = 0x80000000;
}