001: package ch.ethz.ssh2.sftp;
002:
003: /**
004: *
005: * Attribute Flags. The 'valid-attribute-flags' field in
006: * the SFTP ATTRS data type specifies which of the fields are actually present.
007: *
008: * @author Christian Plattner, plattner@inf.ethz.ch
009: * @version $Id: AttribFlags.java,v 1.2 2006/08/02 12:05:00 cplattne Exp $
010: *
011: */
012: public class AttribFlags {
013: /**
014: * Indicates that the 'allocation-size' field is present.
015: */
016: public static final int SSH_FILEXFER_ATTR_SIZE = 0x00000001;
017:
018: /** Protocol version 6:
019: * 0x00000002 was used in a previous version of this protocol.
020: * It is now a reserved value and MUST NOT appear in the mask.
021: * Some future version of this protocol may reuse this value.
022: */
023: public static final int SSH_FILEXFER_ATTR_V3_UIDGID = 0x00000002;
024:
025: /**
026: * Indicates that the 'permissions' field is present.
027: */
028: public static final int SSH_FILEXFER_ATTR_PERMISSIONS = 0x00000004;
029:
030: /**
031: * Indicates that the 'atime' and 'mtime' field are present
032: * (protocol v3).
033: */
034: public static final int SSH_FILEXFER_ATTR_V3_ACMODTIME = 0x00000008;
035:
036: /**
037: * Indicates that the 'atime' field is present.
038: */
039: public static final int SSH_FILEXFER_ATTR_ACCESSTIME = 0x00000008;
040:
041: /**
042: * Indicates that the 'createtime' field is present.
043: */
044: public static final int SSH_FILEXFER_ATTR_CREATETIME = 0x00000010;
045:
046: /**
047: * Indicates that the 'mtime' field is present.
048: */
049: public static final int SSH_FILEXFER_ATTR_MODIFYTIME = 0x00000020;
050:
051: /**
052: * Indicates that the 'acl' field is present.
053: */
054: public static final int SSH_FILEXFER_ATTR_ACL = 0x00000040;
055:
056: /**
057: * Indicates that the 'owner' and 'group' fields are present.
058: */
059: public static final int SSH_FILEXFER_ATTR_OWNERGROUP = 0x00000080;
060:
061: /**
062: * Indicates that additionally to the 'atime', 'createtime',
063: * 'mtime' and 'ctime' fields (if present), there is also
064: * 'atime-nseconds', 'createtime-nseconds', 'mtime-nseconds'
065: * and 'ctime-nseconds'.
066: */
067: public static final int SSH_FILEXFER_ATTR_SUBSECOND_TIMES = 0x00000100;
068:
069: /**
070: * Indicates that the 'attrib-bits' and 'attrib-bits-valid'
071: * fields are present.
072: */
073: public static final int SSH_FILEXFER_ATTR_BITS = 0x00000200;
074:
075: /**
076: * Indicates that the 'allocation-size' field is present.
077: */
078: public static final int SSH_FILEXFER_ATTR_ALLOCATION_SIZE = 0x00000400;
079:
080: /**
081: * Indicates that the 'text-hint' field is present.
082: */
083: public static final int SSH_FILEXFER_ATTR_TEXT_HINT = 0x00000800;
084:
085: /**
086: * Indicates that the 'mime-type' field is present.
087: */
088: public static final int SSH_FILEXFER_ATTR_MIME_TYPE = 0x00001000;
089:
090: /**
091: * Indicates that the 'link-count' field is present.
092: */
093: public static final int SSH_FILEXFER_ATTR_LINK_COUNT = 0x00002000;
094:
095: /**
096: * Indicates that the 'untranslated-name' field is present.
097: */
098: public static final int SSH_FILEXFER_ATTR_UNTRANSLATED_NAME = 0x00004000;
099:
100: /**
101: * Indicates that the 'ctime' field is present.
102: */
103: public static final int SSH_FILEXFER_ATTR_CTIME = 0x00008000;
104:
105: /**
106: * Indicates that the 'extended-count' field (and probablby some
107: * 'extensions') is present.
108: */
109: public static final int SSH_FILEXFER_ATTR_EXTENDED = 0x80000000;
110: }
|