def _delocalize_outputs_commands(self, task_dir, outputs, user_project):
commands = []<EOL>for o in outputs:<EOL><INDENT>if o.recursive or not o.value:<EOL><INDENT>continue<EOL><DEDENT>dest_path = o.uri.path<EOL>local_path = task_dir + '<STR_LIT:/>' + _DATA_SUBDIR + '<STR_LIT:/>' + o.docker_path<EOL>if o.file_provider == job_model.P_LOCAL:<EOL><INDENT>commands.append('<STR_LIT>' % dest_path)<EOL><DEDENT>if o.file_provider in [job_model.P_LOCAL, job_model.P_GCS]:<EOL><INDENT>if user_project:<EOL><INDENT>command = '<STR_LIT>' % (user_project, local_path,<EOL>dest_path)<EOL><DEDENT>else:<EOL><INDENT>command = '<STR_LIT>' % (local_path, dest_path)<EOL><DEDENT>commands.append(command)<EOL><DEDENT><DEDENT>return '<STR_LIT:\n>'.join(commands)<EOL>
Copy outputs from local disk to GCS.