connection.flush();
}
} else if (action == Action.OUTPUT_STREAM) {
String relPath = connection.readString();
VirtualFile file = virtualFileService.getRootDirectory().getFile(relPath);
OutputStream os = file.createOutputStream();
connection.writeLong(LONG_OK);
connection.flush();
IOUtils.copy(connection.getIs(), os);
} else if (action == Action.EXISTS) {
String relPath = connection.readString();