Source:
<code>protected SpawnResult actuallyExec(Spawn spawn, SpawnExecutionContext context) throws IOException, ExecException, InterruptedException { Path sandboxPath = sandboxBase.getRelative(getName()).getRelative(Integer.toString(context.getId())); sandboxPath.getParentDirectory().createDirectory(); <START> sandboxPath.createDirectory(); <END> Path sandboxExecRoot = sandboxPath.getRelative("execroot").getRelative(execRoot.getBaseName()); sandboxExecRoot.getParentDirectory().createDirectory(); sandboxExecRoot.createDirectory(); Map<String, String> environment = localEnvProvider.rewriteLocalEnv(spawn.getEnvironment(), binTools, "/tmp"); ImmutableSet<Path> writableDirs = getWritableDirs(sandboxExecRoot, environment); SandboxOutputs outputs = SandboxHelpers.getOutputs(spawn); Duration timeout = context.getTimeout(); WindowsSandboxUtil.CommandLineBuilder commandLineBuilder = WindowsSandboxUtil.commandLineBuilder(windowsSandbox, spawn.getArguments()) .setWritableFilesAndDirectories(writableDirs) .setUseDebugMode(getSandboxOptions().sandboxDebug) .setKillDelay(timeoutKillDelay); if (!timeout.isZero()) { commandLineBuilder.setTimeout(timeout); } Path statisticsPath = null; SandboxedSpawn sandbox = new WindowsSandboxedSpawn( sandboxPath, sandboxExecRoot, commandLineBuilder.build(), environment, SandboxHelpers.processInputFiles( spawn, context, execRoot, getSandboxOptions().symlinkedSandboxExpandsTreeArtifactsInRunfilesTree), outputs, writableDirs, treeDeleter); return runSpawn(spawn, sandbox, context, execRoot, timeout, statisticsPath); }</code><technical_language>combine 2 lines sandboxPath.createDirectoryAndParents()</technical_language>

Target:
protected SpawnResult actuallyExec(Spawn spawn, SpawnExecutionContext context) throws IOException, ExecException, InterruptedException { Path sandboxPath = sandboxBase.getRelative(getName()).getRelative(Integer.toString(context.getId())); sandboxPath.createDirectoryAndParents(); Path sandboxExecRoot = sandboxPath.getRelative("execroot").getRelative(execRoot.getBaseName()); sandboxExecRoot.createDirectoryAndParents(); Path tmpDir = createActionTemp(execRoot); Path commandTmpDir = tmpDir.getRelative("work"); commandTmpDir.createDirectory(); Map<String, String> environment = localEnvProvider.rewriteLocalEnv(spawn.getEnvironment(), binTools, commandTmpDir.getPathString()); ImmutableSet<Path> writableDirs = getWritableDirs(sandboxExecRoot, environment); SandboxOutputs outputs = SandboxHelpers.getOutputs(spawn); Duration timeout = context.getTimeout(); WindowsSandboxUtil.CommandLineBuilder commandLineBuilder = WindowsSandboxUtil.commandLineBuilder(windowsSandbox, spawn.getArguments()) .setWritableFilesAndDirectories(writableDirs) .setUseDebugMode(getSandboxOptions().sandboxDebug) .setKillDelay(timeoutKillDelay); if (!timeout.isZero()) { commandLineBuilder.setTimeout(timeout); } Path statisticsPath = null; SandboxedSpawn sandbox = new CopyingSandboxedSpawn( sandboxPath, sandboxExecRoot, commandLineBuilder.build(), environment, SandboxHelpers.processInputFiles( spawn, context, execRoot, getSandboxOptions().symlinkedSandboxExpandsTreeArtifactsInRunfilesTree), outputs, writableDirs, treeDeleter); return runSpawn(spawn, sandbox, context, execRoot, timeout, statisticsPath); }