FileAttributes attrs) throws IOException {
if (attrs == null) {
attrs = new FileAttributes();
}
UnsignedInteger32 requestId = nextRequestId();
SubsystemMessage msg = new SshFxpOpen(requestId, absolutePath,
new UnsignedInteger32(flags), attrs);
sendMessage(msg);
byte[] handle = getHandleResponse(requestId);
SftpFile file = new SftpFile(absolutePath, null);
file.setHandle(handle);