} else {
return new SshFxpStatusReply(id, SSH_FX_NOT_A_DIRECTORY, p.getAbsolutePath());
}
} else if (!p.isWritable()) {
return new SshFxpStatusReply(id, SSH_FX_PERMISSION_DENIED, p.getAbsolutePath());
} else if (!p.mkdir()) {
return new SshFxpStatusReply(id, SSH_FX_FAILURE, "Error creating dir " + path);
} else {
return new SshFxpStatusReply(id, SSH_FX_OK, "");
}
}