if (file.doesExist()) {
return new SshFxpStatusReply(id, SSH_FX_FILE_ALREADY_EXISTS, path);
} else if (!file.isWritable()) {
return new SshFxpStatusReply(id, SSH_FX_PERMISSION_DENIED, "Can not create " + path);
}
file.truncate();
break;
}
case SSH_FXF_OPEN_EXISTING: {
if (!file.doesExist()) {
if (!file.getParentFile().doesExist()) {