Mercurial > 510Connectbot
comparison app/src/main/java/ch/ethz/ssh2/sftp/AttribPermissions.java @ 438:d29cce60f393
migrate from Eclipse to Android Studio
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 03 Dec 2015 11:23:55 -0800 |
parents | src/ch/ethz/ssh2/sftp/AttribPermissions.java@91a31873c42a |
children |
comparison
equal
deleted
inserted
replaced
437:208b31032318 | 438:d29cce60f393 |
---|---|
1 /* | |
2 * Copyright (c) 2006-2011 Christian Plattner. All rights reserved. | |
3 * Please refer to the LICENSE.txt for licensing details. | |
4 */ | |
5 package ch.ethz.ssh2.sftp; | |
6 | |
7 /** | |
8 * Permissions for the 'permissions' field in the SFTP ATTRS data type. | |
9 * <p/> | |
10 * "<i>The 'permissions' field contains a bit mask specifying file permissions. | |
11 * These permissions correspond to the st_mode field of the stat structure | |
12 * defined by POSIX [IEEE.1003-1.1996].</i>" | |
13 * | |
14 * @author Christian Plattner | |
15 * @version 2.50, 03/15/10 | |
16 */ | |
17 public class AttribPermissions { | |
18 private AttribPermissions() { | |
19 } | |
20 | |
21 /* Octal values! */ | |
22 | |
23 public static final int S_IRUSR = 0400; | |
24 public static final int S_IWUSR = 0200; | |
25 public static final int S_IXUSR = 0100; | |
26 public static final int S_IRGRP = 0040; | |
27 public static final int S_IWGRP = 0020; | |
28 public static final int S_IXGRP = 0010; | |
29 public static final int S_IROTH = 0004; | |
30 public static final int S_IWOTH = 0002; | |
31 public static final int S_IXOTH = 0001; | |
32 public static final int S_ISUID = 04000; | |
33 public static final int S_ISGID = 02000; | |
34 public static final int S_ISVTX = 01000; | |
35 } |