Mercurial > 510Connectbot
diff src/ch/ethz/ssh2/sftp/Packet.java @ 308:42b15aaa7ac7 ganymed
merge
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Wed, 30 Jul 2014 14:21:50 -0700 |
parents | 071eccdff8ea |
children |
line wrap: on
line diff
--- a/src/ch/ethz/ssh2/sftp/Packet.java Wed Jul 30 13:38:04 2014 -0700 +++ b/src/ch/ethz/ssh2/sftp/Packet.java Wed Jul 30 14:21:50 2014 -0700 @@ -51,62 +51,89 @@ public static final int SSH_FXP_EXTENDED_REPLY = 201; public static String forName(int type) { - switch(type) { + switch (type) { case SSH_FXP_INIT: return "SSH_FXP_INIT"; + case SSH_FXP_VERSION: return "SSH_FXP_VERSION"; + case SSH_FXP_OPEN: return "SSH_FXP_OPEN"; + case SSH_FXP_CLOSE: return "SSH_FXP_CLOSE"; + case SSH_FXP_READ: return "SSH_FXP_READ"; + case SSH_FXP_WRITE: return "SSH_FXP_WRITE"; + case SSH_FXP_LSTAT: return "SSH_FXP_LSTAT"; + case SSH_FXP_FSTAT: return "SSH_FXP_FSTAT"; + case SSH_FXP_SETSTAT: return "SSH_FXP_SETSTAT"; + case SSH_FXP_FSETSTAT: return "SSH_FXP_FSETSTAT"; + case SSH_FXP_OPENDIR: return "SSH_FXP_OPENDIR"; + case SSH_FXP_READDIR: return "SSH_FXP_READDIR"; + case SSH_FXP_REMOVE: return "SSH_FXP_REMOVE"; + case SSH_FXP_MKDIR: return "SSH_FXP_MKDIR"; + case SSH_FXP_RMDIR: return "SSH_FXP_RMDIR"; + case SSH_FXP_REALPATH: return "SSH_FXP_REALPATH"; + case SSH_FXP_STAT: return "SSH_FXP_STAT"; + case SSH_FXP_RENAME: return "SSH_FXP_RENAME"; + case SSH_FXP_READLINK: return "SSH_FXP_READLINK"; + case SSH_FXP_SYMLINK: return "SSH_FXP_SYMLINK"; + case SSH_FXP_STATUS: return "SSH_FXP_STATUS"; + case SSH_FXP_HANDLE: return "SSH_FXP_HANDLE"; + case SSH_FXP_DATA: return "SSH_FXP_DATA"; + case SSH_FXP_NAME: return "SSH_FXP_NAME"; + case SSH_FXP_ATTRS: return "SSH_FXP_ATTRS"; + case SSH_FXP_EXTENDED: return "SSH_FXP_EXTENDED"; + case SSH_FXP_EXTENDED_REPLY: return "SSH_FXP_EXTENDED_REPLY"; } + return null; } }